Re: database performance and query performance question

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: database performance and query performance question
Дата
Msg-id 200401221243.15312.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: database performance and query performance question  ("Shea,Dan [CIS]" <Dan.Shea@ec.gc.ca>)
Список pgsql-performance
Dan,

> Something that I do not understand is why if you use a valid_time =
> '2004-01-22 00:00:00' the query will use the index but if you do a
> valid_time >  '2004-01-22 00:00:00' it does not use the index?

Because of the expected number of rows to be returned.  Take a look at the row
estimates on the forecastleelement scans.

You can improve these estimates by increasing the ANALYZE stats and/or running
ANALYZE more often.   Of course, increasing the stats makes analyze run
slower ...

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


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

Предыдущее
От: "Shea,Dan [CIS]"
Дата:
Сообщение: Re: database performance and query performance question
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: database performance and query performance question