| От | Tom Lane |
|---|---|
| Тема | Re: Best database structure for timely ordered values |
| Дата | |
| Msg-id | 18883.977151415@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Best database structure for timely ordered values (Reiner Dassing <dassing@wettzell.ifag.de>) |
| Ответы |
Re: Best database structure for timely ordered values
|
| Список | pgsql-sql |
Reiner Dassing <dassing@wettzell.ifag.de> writes:
> The primary index must be the epoch.
> As there will be no deletion from this data I fear - due to the
> internal representation of B-trees - the performance will degrade very
> soon.
Nonsense. btree should work just fine for that. Use a timestamp
column for the primary key, and away you go.
(Actually, time alone doesn't seem like it'd be necessarily unique,
so maybe you don't want to call it a primary key. But certainly
you can make a non-unique index on that column.)
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера