Re: Query tuning

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: Query tuning
Дата
Msg-id 2f4958ff0908190938l683b2ed4w94b6d36361307e35@mail.gmail.com
обсуждение исходный текст
Ответ на Query tuning  (Kevin Kempter <kevink@consistentstate.com>)
Ответы Re: Query tuning  (Nikolas Everett <nik9000@gmail.com>)
Список pgsql-performance
that seems to be the killer:

and time >= extract ('epoch' from timestamp '2009-08-12')
and time < extract ('epoch' from timestamp '2009-08-13' )

You probably need an index on time/epoch:

CREATE INDEX foo ON table(extract ('epoch' from timestamp time );

or something like that, vacuum analyze and retry.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: Query tuning
Следующее
От: Scott Carey
Дата:
Сообщение: Re: Query tuning