Re: Performance w/ multiple WHERE clauses

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Aaron Held <aaron(at)MetroNY(dot)com>, Chris Ruprecht <chrup(at)earthlink(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Performance w/ multiple WHERE clauses
Date: 2002-09-20 21:55:30
Message-ID: 200209201455.30054.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Aaron,

> # SET enable_seqscan to FALSE ;
> forced the use of an Index and sped things up greatly.
>
> I am not sure why it made the switch. The load on the server seems to
> affect the performance, but I am seeing it more on the production server
> with 100 million rows as opposed to the development server with only
> about 6 million. I need to buy more drives and develop on a larger data
> set.

What version are you using?

I'd have 3 suggestions:
1) ANALYZE, ANALYZE, ANALYZE. Then check if the row estimates made by EXPLAIN
seem accurate.
2) Modify your postgresql.conf file to raise the cost of seq_scans for parser
estimates.
3) Test this all again when 7.3 comes out, as parser estimate improves all the
time.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rajesh Kumar Mallah. 2002-09-21 04:45:09 Appending to an array[] feild...[ ltree ]
Previous Message Tom Lane 2002-09-20 21:23:32 Re: Getting acces to MVCC version number