From: | "Shridhar Daithankar<shridhar_daithankar(at)persistent(dot)co(dot)in>" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Hi, |
Date: | 2003-02-15 06:31:41 |
Message-ID: | 200302151201.41662.shridhar_daithankar@persistent.co.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wednesday 12 Feb 2003 6:20 pm, you wrote:
> Hi,
> While testing select query with where condition for primary key
> and non primary key value, I got the following results
>
> Base database size Time taken to select one record using one
> query in milliseconds
That is not a correct measure. Postgresql has a latency. You select 1 record
it will return you in 200ms and 100 records in 201 ms. Does it make sense?
Try to benchmark for repeated and more number of rows as a part of query.
>
> With Primary key With Non primary Key
>
> 2000 15.8 15.7
> 10000 71.2 70.7
> 25000 174 173.5
> 100000 4319 3417
Do an explain analyze on those select query. Most probably postgresql is
scanning table sequentially. Which may be a good thing.
Further you have not specified what kind of tuning you have done to
postgresql. If you are running with defaults, well, you need to change them.
And don't read too much in a select query performance. There are lot many
things that affect the performance..
HTH
Shridhar
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar<shridhar_daithankar@persistent.co.in> | 2003-02-15 06:34:35 | Re: postgres not accessible in Mandrake 9.0 |
Previous Message | Bradley McLean | 2003-02-15 02:45:39 | Re: [HACKERS] plpython trigger code is wrong (Re: Potential bug -- script that drops postgres server) |