Re: How to create an index for type timestamp column using rtree?
В списке pgsql-performance по дате отправления:
| От | Chris Cheston |
|---|---|
| Тема | Re: How to create an index for type timestamp column using rtree? |
| Дата | |
| Msg-id | e071108e04071300564c0c5379@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: How to create an index for type timestamp column using (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Список | pgsql-performance |
Thanks, Chris and Tom. I had read *incorrectly* that rtrees are better for <= and >= comparisons. Chris On Tue, 13 Jul 2004 14:33:48 +0800, Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote: > > I'm storing some timestamps as integers (UTF) in a table and I want to > > query by <= and >= for times between a certain period. The table has > > gotten quite large and is now very slow in querying. > > > > I think it's time to create an index for the timestamp column. > > Uh, yeah. > > > I tried using an rtree (for <= and >= optimization): > > Bad idea. > > > Do I have to create an rtree type for my timestamp integer column? > > Why do you want an rtree index? They're for multidimensional polygonal > data and stuff. Just create a normal index... > > Chris > >
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера