pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gabriele Turchi <gabriele.turchi@l39a.com>
To: Joe Conway <mail@joeconway.com>
Cc: pgsql-performance@postgresql.org, Marco Colombo <marco@esiway.net>
Subject: Re: Big differences in plans between 8.0 and 8.1
Date: Tue, 18 Jul 2006 09:25:40 +0200
Message-ID: <1153207541.3323.10.camel@apollo5.casa.intranet> (raw)
In-Reply-To: <44BA8087.9010007@joeconway.com>
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>
	<44BA8087.9010007@joeconway.com>

Il giorno dom, 16/07/2006 alle 11.08 -0700, Joe Conway ha scritto:
> 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

No one. The application was not fine-tuned, because the original
performance (under 8.0) was "more than enough". I thought that creating
an index on a table with no more than some hundred of records was not
useful...

My biggest doubt is anyway related to the very big difference between
the plans in 8.0 and 8.1 under the same conditions. 

Thank you,
Gabriele

Attachments:

  smime.p7s (application/x-pkcs7-signature, 5.9K) download

view thread (8+ messages)

Message-ID: <1153207541.3323.10.camel@apollo5.casa.intranet>
Permalink:  ../1153207541.3323.10.camel@apollo5.casa.intranet/
Also on:    postgresql.org/message-id/1153207541.3323.10.camel@apollo5.casa.intranet

 · 

reply

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: gabriele.turchi@l39a.com, mail@joeconway.com, marco@esiway.net
  Subject: Re: Big differences in plans between 8.0 and 8.1
  In-Reply-To: <1153207541.3323.10.camel@apollo5.casa.intranet>

* 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