Re: Optimizer Question/Suggestion - numbers after - Mailing list pgsql-hackers

From Philip Warner
Subject Re: Optimizer Question/Suggestion - numbers after
Date
Msg-id 5.1.0.14.0.20021102200151.029c1b20@mail.rhyme.com.au
Whole thread Raw
In response to Optimizer Question/Suggestion  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
At 07:39 PM 2/11/2002 +1100, Philip Warner wrote:
>To give some numbers:

And some more numbers, directly after a vacuum and analyze:

mail=# explain analyze select * from often_updated where id between 
'-10000' and '100000';
Index Scan using barnet_users_id on often_updated  (cost=0.00..3095.66 
rows=750 width=205) (actual time=0.15..41.04 rows=750 loops=1)
Total runtime: 44.81 msec

mail=# explain analyze select * from often_updated;
Seq Scan on often_updated  (cost=0.00..49273.50 rows=750 width=205) (actual 
time=1.93..1710.01 rows=750 loops=1)
Total runtime: 1714.32 msec

The latter time is actually quote good; when the machine is more heavily 
loaded it goes up to 10000ms.

We currently vacuum/analyze daily, and analyze hourly.


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/



pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Optimizer Question/Suggestion
Next
From: "Marc G. Fournier"
Date:
Subject: Re: CONVERT function is seriously broken