Re: How to speed up the database query?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: How to speed up the database query?
Дата
Msg-id 20051027163110.GB11072@wolff.to
обсуждение исходный текст
Ответ на How to speed up the database query?  (Abdul Wahab Dahalan <wahab@mimos.my>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: why vacuum
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: why vacuum