pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Stanislas de Larocque <dllstan@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Optimize querry sql
Date: Mon, 17 Sep 2007 09:25:41 +0200
Message-ID: <20070917072541.GA13991@depesz.com> (raw)
In-Reply-To: <bc40d0a30709170017p671840eex8626c9d923c4cacd@mail.gmail.com>
References: <bc40d0a30709140602x2a7914bcs8fa65d738abc4e92@mail.gmail.com>
	<20070914133641.GA31759@depesz.com>
	<bc40d0a30709170017p671840eex8626c9d923c4cacd@mail.gmail.com>

On Mon, Sep 17, 2007 at 09:17:58AM +0200, Stanislas de Larocque wrote:
> Have you advices to optimize the query please ?

for some many rows the 400ms looks quite reasonable.

the best thing you can make to speed things up is to calculate the
counts with triggers.

depesz

-- 
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)



view thread (14+ messages)

Message-ID: <20070917072541.GA13991@depesz.com>
Permalink:  ../20070917072541.GA13991@depesz.com/
Also on:    postgresql.org/message-id/20070917072541.GA13991@depesz.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-sql@postgresql.org
  Cc: depesz@depesz.com, dllstan@gmail.com
  Subject: Re: Optimize querry sql
  In-Reply-To: <20070917072541.GA13991@depesz.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