Re: Optimization with dates

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Optimization with dates
Дата
Msg-id web-505462@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Optimization with dates  (Jean-Christophe Boggio <cat@thefreecat.org>)
Ответы Re: Optimization with dates  (Jason Earl <jason.earl@simplot.com>)
Re: Optimization with dates  (Jason Earl <jason.earl@simplot.com>)
Список pgsql-sql
Jean-Christophe,

> Aggregate  (cost=256546.78..256546.78 rows=1 width=0)
>   ->  Seq Scan on gains  (cost=0.00..250627.68 rows=2367640 width=0)
> 
> whereas :

Hmmm... if the number of rows is actually accurate (2M out of 10M in the
last 30 days) then a Seq Scan seems like a good plan to me.  If the
numbers aren't accurate, it's time to run a VACUUM ANALYZE.

Regardless, if you're actually querying for 2M recordsets, you'd better
throw some hardware at the problem, and learn the .conf parameters.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


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

Предыдущее
От: Jean-Christophe Boggio
Дата:
Сообщение: Optimization with dates
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Optimization with dates