Re: Query tuning

Поиск
Список
Период
Сортировка
От Віталій Тимчишин
Тема Re: Query tuning
Дата
Msg-id 331e40660908200503o1a24aa42pb25210fb59691f88@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query tuning  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-performance


2009/8/19 Kevin Kempter <kevink@consistentstate.com>

We do have an index on url_hits.time

not sure why timestamps were not used, I was not here for the design phase.

What's type of time column? I don't like it casts it to double in explain. If it is integer, may be you need to change

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

to

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

for the index to be used?

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

Предыдущее
От: Fabio La Farcioli
Дата:
Сообщение: Re: Number of tables
Следующее
От: Ivan Voras
Дата:
Сообщение: Re: PG 8.3 and server load