Re: Optimizer Question/Suggestion - numbers after

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Optimizer Question/Suggestion - numbers after
Date: 2002-11-02 09:06:48
Message-ID: 5.1.0.14.0.20021102200151.029c1b20@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2002-11-02 10:59:17 Re: CONVERT function is seriously broken
Previous Message Philip Warner 2002-11-02 08:39:58 Optimizer Question/Suggestion