From: Nick Fankhauser <nickf@ontko.com>
To: Azlin Ghazali <azlin_ghazali@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL is slow...HELP
Date: Wed, 3 Sep 2003 09:10:59 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGOEOLICAA.nickf@ontko.com> (raw)
In-Reply-To: <20030903130857.5986.qmail@web40401.mail.yahoo.com>
> For small records
> it is not much problems. But as the records grew (up to 12,000
> records) the
> difference is quite significant.
Although there are many tuning options, I'd suggest starting by making sure
you have an index (unique in cases where appropriate) on accposd.date
accposd.item, items.name, accposd.loose and items.name. Then do an
"analyze;" on the DB to make sure the database takes advantage of the
indexes where appropriate.
If this doesn't help, there are other options to pursue, but this is where I
would start.
-Nick
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: nickf@ontko.com, azlin_ghazali@yahoo.com
Subject: Re: PostgreSQL is slow...HELP
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGOEOLICAA.nickf@ontko.com>
References: <20030903130857.5986.qmail@web40401.mail.yahoo.com> <NEBBLAAHGLEEPCGOBHDGOEOLICAA.nickf@ontko.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