pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: using an index worst performances
Date: Thu, 19 Aug 2004 19:09:55 +0100
Message-ID: <4124ECF3.6040901@archonet.com> (raw)
In-Reply-To: <cg2nrf$sc1$1@floppy.pyrenet.fr>
References: <cg2nrf$sc1$1@floppy.pyrenet.fr>

Gaetano Mendola wrote:
> Hi all,
> I'm tring to optimize the following query:
> 
> http://rafb.net/paste/results/YdO9vM69.html
> 
> as you can see from the explain after defining the
> index the performance is worst.
> 
> If I raise the default_statistic_target to 200
> then the performance are worst then before:
> 
> 
> 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.

-- 
   Richard Huxton
   Archonet Ltd



view thread (11+ messages)  latest in thread

Message-ID: <4124ECF3.6040901@archonet.com>
Permalink:  ../4124ECF3.6040901@archonet.com/
Also on:    postgresql.org/message-id/4124ECF3.6040901@archonet.com

 · 

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: dev@archonet.com, mendola@bigfoot.com
  Subject: Re: using an index worst performances
  In-Reply-To: <4124ECF3.6040901@archonet.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