Re: [GENERAL] Poor performance - need advice

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: Mark Alliban <MarkA(at)idnltd(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Poor performance - need advice
Date: 2000-02-02 18:23:17
Message-ID: 38987615.C3E1FDAB@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Alliban wrote:
>
> We have a table with 95,000 records, indexed on an int8 type (ClientNumber).
> It is currently taking up to 10 seconds to retrieve one row based upon the
> following statement:
>
> SELECT * FROM ClientTable WHERE ClientNumber=1234566789;
>
> The client numbers are random and there is currently no locking on the
> database. I am running SCO OpenServer, PostgreSQL version 6.5.3. Is there
> any way we can reduce the time taken by this query?

Pardon me for asking what may be obvious, but are you running 'vacuum
analyze' regularly? If not, that may fix the problem.

Cheers,
Ed Loehr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2000-02-02 18:26:56 Re: [GENERAL] Rebuilding 6.5.3 RPMs
Previous Message Mark Alliban 2000-02-02 18:16:02 Re: Poor performance - need advice