Re: Big differences in plans between 8.0 and 8.1

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Big differences in plans between 8.0 and 8.1
Дата
Msg-id 44BA8087.9010007@joeconway.com
обсуждение исходный текст
Ответ на Re: Big differences in plans between 8.0 and 8.1  (Gabriele Turchi <gabriele.turchi@l39a.com>)
Ответы Re: Big differences in plans between 8.0 and 8.1  (Gabriele Turchi <gabriele.turchi@l39a.com>)
Список pgsql-performance
Gabriele Turchi wrote:
> Il giorno sab, 15/07/2006 alle 13.04 -0700, Joe Conway ha scritto:
>>Why not just periodically (once an hour?) run "ANALYZE registrazioni;"
>>during the day. This will only update the statistics, and should be very
>>low impact.
>
> This is my "solution" too... but: is enough? Or else: there is a better
> way to do this? If the performance in the better case is 50 times faster
> than the worse case, during an hour (50/100 record inserted in
> "registrazioni") how much the performance can fall before the new
> "ANALYZE" is run? Otherwise, running ANALYZE more frequently can badly
> affect the overall performance?

One thing I noticed is that in both plans there is a seq scan on
registrazioni. Given that performance degrades so quickly as records are
inserted into registrazioni, I'm wondering if you're missing an index.
What indexes do you have on registrazioni?

Joe

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: increment Rows in an SQL Result Set postgresql
Следующее
От: "Mikael Carneholm"
Дата:
Сообщение: RAID stripe size question