| От | Tom Lane |
|---|---|
| Тема | Re: Help on indexing timestamps |
| Дата | |
| Msg-id | 264.1047049503@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Help on indexing timestamps (Andre Schubert <andre@km3.de>) |
| Ответы |
Re: Help on indexing timestamps
|
| Список | pgsql-sql |
Andre Schubert <andre@km3.de> writes:
> Yes if i use BETWEEN and type in the dates by hand the query takes about 200ms with explain analyze.
> I think these is a good performance.
> But if i use now() instead of manually typed dates the query take about 1400ms :(
> I thought the somebody posted to this list, that now() is a function that is not cached,
> and thatswhy does not work pretty well with indexes.
Update to 7.3, and that problem will go away.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера