| От | Michael Glaesemann |
|---|---|
| Тема | Re: Checking = with timestamp field is slow |
| Дата | |
| Msg-id | 4704C044-2F05-11D9-BE4A-000A95C88220@myrealbox.com обсуждение исходный текст |
| Ответ на | Re: Checking = with timestamp field is slow (Michael Glaesemann <grzm@myrealbox.com>) |
| Ответы |
Re: Checking = with timestamp field is slow
|
| Список | pgsql-performance |
On Nov 5, 2004, at 5:14 PM, Michael Glaesemann wrote: > > On Nov 5, 2004, at 4:16 PM, Antony Paul wrote: >> where today::date = '2004-11-05'; >> >> This is the only condition in the query. There is a btree index on the >> column today. >> Is there any way to optimise it. > > I'm sure others out there have better ideas, but you might want to try > > where current_date = date '2004-11-05' Ach! just re-read that. today is one of your columns! Try where today::date = date '2004-11-05'
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера