Re: Query Speed!!! - Mailing list pgsql-general

From Hans-Juergen Schoenig
Subject Re: Query Speed!!!
Date
Msg-id 3D29CCA8.3090402@cybertec.at
Whole thread Raw
In response to Query Speed!!!  (Thirumoorthy Bhuvneswari <tbhuvneswari@yahoo.com>)
Responses Re: Query Speed!!!
List pgsql-general
Thirumoorthy Bhuvneswari wrote:
> hi,
> I am using Postgresql-7.1.3 with RedHat Linux-7.1 and
> JDBC. I am having an indexed table with nearly 3,000
> records for a month. My machine is with 256 MB RAM,
> 600 MHz. I am having a report from the abovesaid
> table, which displays 1 month's records at a stretch
> using Swing components. If I run the query from the
> hard-disk
> it takes about 5 seconds to display all the 3,000
> records. If I connect 3 nodes to it and run the query
> from a node, it takes about 1.5 minutes. I don't know
> where I am wrong. Please do reply. thanks.
>
> bhuvana.
>


Did you define indexes? did you vacuum the database?
if that doesn't work try to give the optimizer some hints (see manual).

    HAns


pgsql-general by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: Survey on Freebsddiary
Next
From: Tom Lane
Date:
Subject: Re: WAL recycling, Linux 2.4.18