Re: General performance problem!

From: Richard Huxton <dev(at)archonet(dot)com>
To: olivier HARO <o(dot)haro(at)en-compro(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: General performance problem!
Date: 2004-08-17 14:16:14
Message-ID: 4122132E.80603@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

olivier HARO wrote:
> This table contains 5 000 000 records
>
> I have a PHP application which often makes queries on this table (especially on the "cp","naf","effectif" fields)
>
> Querries are like :
> select (distint cp) from base_aveugle where cp='201A' and effectif between 1 and 150
> select (*) from base_aveugle where naf in ('721A','213F','421K') and cp in ('54210','21459','201A') and effectif < 150

We'll need to know what version of PostgreSQL you're using and also what
the output of EXPLAIN ANALYZE shows for your example queries.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Igor Artimenko 2004-08-17 14:22:59 I could not get postgres to utilizy indexes
Previous Message Leeuw van der, Tim 2004-08-17 13:57:25 Re: General performance problem!