pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: using an index worst performances
Date: Fri, 20 Aug 2004 09:39:41 +0800
Message-ID: <4125565D.3060008@familyhealth.com.au> (raw)
In-Reply-To: <412505F6.6080000@bigfoot.com>
References: <cg2nrf$sc1$1@floppy.pyrenet.fr>
	<4124ECF3.6040901@archonet.com>
	<412505F6.6080000@bigfoot.com>

>>> Without index: 1.140 ms
>>> With index: 1.400 ms
>>> With default_statistic_targer = 200:   1.800 ms
>>
>>
>>
>> Can I just check that 1.800ms means 1.8 secs (You're using . as the 
>> thousands separator)?
>>
>> If it means 1.8ms then frankly the times are too short to mean 
>> anything without running them 100 times and averaging.
> 
> 
> 
> It mean 1.8 ms and that execution time is sticky to that value even
> with 1000 times.

Given the almost irrelvant difference in the speed of those queries, I'd 
say that with the stats so high, postgres simply takes longer to check 
the statistics to come to the same conclusion.  ie. it has to loop over 
200 rows instead of just 10.

Chris




view thread (11+ messages)  latest in thread

Message-ID: <4125565D.3060008@familyhealth.com.au>
Permalink:  ../4125565D.3060008@familyhealth.com.au/
Also on:    postgresql.org/message-id/4125565D.3060008@familyhealth.com.au

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, mendola@bigfoot.com, dev@archonet.com
  Subject: Re: using an index worst performances
  In-Reply-To: <4125565D.3060008@familyhealth.com.au>
  References: <cg2nrf$sc1$1@floppy.pyrenet.fr> <4124ECF3.6040901@archonet.com> <412505F6.6080000@bigfoot.com> <4125565D.3060008@familyhealth.com.au>

* 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