Re: Performance Question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: - - <themanatuf(at)yahoo(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance Question
Date: 2008-11-12 20:57:38
Message-ID: 20744.1226523458@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

- - <themanatuf(at)yahoo(dot)com> writes:
> One of my tables has 660,000 records and doing a SELECT * from that table (without any joins or sorts) takes 72 seconds. Ordering the table based on 3 columns almost doubles that time to an average of 123 seconds. To me, those numbers are crazy slow and I don't understand why the queries are taking so long. The tables are UTF-8 encode and contain a mix of languages (English, Spanish, etc). I'm running the query from pgadmin3 on a remote host. The server has nothing else running on it except the database.

pgadmin has got its own performance issues with large select results.
Are you sure the bulk of the time isn't being spent on the client side?
Watching top or vmstat on both machines would probably tell much.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message firerox 2008-11-12 22:47:20 Re: slow full table update
Previous Message Scott Marlowe 2008-11-12 20:55:52 Re: slow full table update