From: Joe Conway <mail@joeconway.com>
To: Gabriele Turchi <gabriele.turchi@l39a.com>
Cc: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-performance@postgresql.org, Marco Colombo <marco@esiway.net>
Subject: Re: Big differences in plans between 8.0 and 8.1
Date: Sun, 16 Jul 2006 11:08:07 -0700
Message-ID: <44BA8087.9010007@joeconway.com> (raw)
In-Reply-To: <1152994970.3541.31.camel@apollo5.casa.intranet>
References: <1152972852.3541.0.camel@apollo5.casa.intranet>
<20060715190210.GA76277@winnie.fuhr.org>
<1152993350.3541.22.camel@apollo5.casa.intranet>
<44B94A51.9050108@joeconway.com>
<1152994970.3541.31.camel@apollo5.casa.intranet>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mail@joeconway.com, gabriele.turchi@l39a.com, mike@fuhr.org, marco@esiway.net
Subject: Re: Big differences in plans between 8.0 and 8.1
In-Reply-To: <44BA8087.9010007@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox