From: Bruno Wolff III <bruno@wolff.to>
To: Abdul Wahab Dahalan <wahab@mimos.my>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to speed up the database query?
Date: Thu, 27 Oct 2005 11:31:10 -0500
Message-ID: <20051027163110.GB11072@wolff.to> (raw)
In-Reply-To: <5076660.1130396616478.SLOX.WebMail.wwwrun@openx.mimos.my>
References: <5076660.1130396616478.SLOX.WebMail.wwwrun@openx.mimos.my>
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 speed up 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.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, wahab@mimos.my
Subject: Re: How to speed up the database query?
In-Reply-To: <20051027163110.GB11072@wolff.to>
* 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