From: | lec <englim(at)pc(dot)jaring(dot)my> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 7.0.2 and 6.5.3 performance |
Date: | 2000-09-18 05:35:21 |
Message-ID: | 39C5A999.E7F0EF63@pc.jaring.my |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom Lane wrote:
> Since you're complaining, I suppose this statistical estimate is way
> off :-(. What do you actually get from
>
> select count(*) from stl where
> stl_discounttype in ('','S','V')
> and stl_trxdate>='Jul 01, 2000' and stl_trxdate<='Jul 02, 2000'
> and stl_status='N';
7678
>
>
> select count(*) from item where
> itm_sectiontype='O'
> and itm_section >='101'
> and itm_section <='135';
> ?
>
9973
Table stl is quite big. Eg. if I run
select count(*) from stl where
stl_discounttype in ('','S','V')
and stl_trxdate>='Jul 01, 2000' and stl_trxdate<='Jul 31, 2000'
and stl_status='N';
The count is 157,997.
select count(*) from stl;
The count is 1,935,135.
Thanks & regards,
Thomas.
From | Date | Subject | |
---|---|---|---|
Next Message | luc00 | 2000-09-18 08:32:59 | q: SQL interface to multiple table DB ? |
Previous Message | Neil Conway | 2000-09-18 04:49:16 | Re: How to tune a SELECT in 7.0.2 |