Re: pg 7.4.rc1, Range query performance

From: ow <oneway_111(at)yahoo(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg 7.4.rc1, Range query performance
Date: 2003-11-11 01:10:39
Message-ID: 20031111011039.18349.qmail@web21402.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

--- Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> Strange 30 records takes 30x the time than one record. Can you run
> ANALYZE and send us an EXPLAIN of the query to make sure it hasn't
> changed?
>

explain analyze select * from Test
where a >= '2002-06-18'
and a <= '2002-07-18'
and b = 5
and c = 255

QUERY PLAN
Index Scan using ak_abc on test (cost=0.00..121.23 rows=34 width=53) (actual
time=18.060..10726.387 rows=31 loops=1)
Index Cond: (((a)::timestamp without time zone >= '2002-06-18
00:00:00'::timestamp without time zone) AND ((a)::timestamp without time zone
<= '2002-07-18 00:00:00'::timestamp without time zone) AND ((b)::integer = 5)
AND ((c) (..)
Total runtime: 10726.663 ms

Thanks

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2003-11-11 01:22:03 Re: Query Problem
Previous Message Abdul Wahab Dahalan 2003-11-11 01:06:27 Query Problem