Re: select query takes 13 seconds to run with index

From: Justin <justin(at)emproshunts(dot)com>
To: mark <markkicks(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: select query takes 13 seconds to run with index
Date: 2008-05-27 00:05:20
Message-ID: 483B5040.30600@emproshunts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

mark wrote:
>>
>>
>>
>> Size of the Table
>>
>>
>> 22 million rows approximately
>>
>>
>> I have no experience on large datasets so people with more experience in
>> this area are going to have to chime in.
>> My gut feel is 13 seconds for Postgresql to sort through an index of that
>> size and table is not bad.
>>
>> you may need to take a look at hardware and postgresql.config settings to
>> improve the performance for this query
>>
>> This query is very simple where changing it around or adding index results
>> massive improvements is not going to help in this case.
>>
> the hardware is e5405 dual quad core on a 16GB RAM machine, with 8.3.1
> default settings except maximum connections increased...
>
That could be problem, Postgresql default settings are very conservative.

You need to read http://www.postgresqldocs.org/wiki/Performance_Optimization
and tune posgtresql.config settings.

What OS are you running?
What is Disk Subsystem setup???

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Wilson 2008-05-27 00:09:30 Re: select query takes 13 seconds to run with index
Previous Message Gregory Williamson 2008-05-27 00:04:39 Re: select query takes 13 seconds to run with index

Browse pgsql-performance by date

  From Date Subject
Next Message David Wilson 2008-05-27 00:09:30 Re: select query takes 13 seconds to run with index
Previous Message Gregory Williamson 2008-05-27 00:04:39 Re: select query takes 13 seconds to run with index