Re: How to speed up the database query? - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: How to speed up the database query?
Date
Msg-id 20051027163110.GB11072@wolff.to
Whole thread Raw
In response to How to speed up the database query?  (Abdul Wahab Dahalan <wahab@mimos.my>)
List pgsql-sql
On Thu, Oct 27, 2005 at 15:03:36 +0800, Abdul Wahab Dahalan <wahab@mimos.my> wrote:
> Hi everyone!
> 
> I'm looking for solution to speed up the database query, means that to get resultset as quicker as we can.
> 
> For example if I've 700 records in the table it will take longer time compared if I've only 20 records. How do we
speedup the query?. Any query technique that can be applied?.
 
> 
> Thus wild card query like : select * from tableA will cause query time increased compare to say select a,b from
tableA.
> 
> any help, prettymuch appreciated.

Why don't you run explain analyze on the real query you are trying to speed up
and show us the output along with the query and relevant table and view
definitions.

Yes, specifying fewer columns will probably significantly speed things up,
as you will be transmitting less data over the network. There aren't magic
ways to speed up queries return every row in a table.


pgsql-sql by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: why vacuum
Next
From: Jan Wieck
Date:
Subject: Re: why vacuum