Re: [PATCHES] Bitmapscan changes

Поиск
Список
Период
Сортировка
Искать

Re: [PATCHES] Bitmapscan changes

От:
"Luke Lonergan" <LLonergan@greenplum.com>
Дата:

Wow, nice!

Can you tell us:
- how big is the table
- cardinality of the column
- how big is the index in each case
- how much memory on the machine
- query and explain analyze

Thanks!

- Luke

Msg is shrt cuz m on ma treo

 -----Original Message-----
From:   Grzegorz Jaskiewicz [mailto:gj@pointblue.com.pl]
Sent:   Saturday, March 17, 2007 05:16 PM Eastern Standard Time
To:     Joshua D.Drake
Cc:     Heikki Linnakangas; PostgreSQL-development Hackers
Subject:        Re: [HACKERS] [PATCHES] Bitmapscan changes

This is on dual ultra 2 sparc. with ultrawide 320 scsi drives. 512MB 
ram.
I had to drop size of DB, because the DB drive is 4GB (I do welecome 
bigger drives as donation, if someone asks - UWscsi 320).

here are my results. With only 4.2 patch (no maintain cluster order 
v5 patch). If the v5 patch was needed, please tell me - I am going 
rerun it with.

hope it is usefull.

Repeat 3 times to ensure repeatable results.
Timing is on.
select_with_normal_index
--------------------------
                    100000
(1 row)

Time: 1727891.334 ms
select_with_normal_index
--------------------------
                    100000
(1 row)

Time: 1325561.252 ms
select_with_normal_index
--------------------------
                    100000
(1 row)

Time: 1348530.100 ms
Timing is off.
And now run the same tests with clustered index
Timing is on.
select_with_clustered_index
-----------------------------
                       100000
(1 row)

Time: 870246.856 ms
select_with_clustered_index
-----------------------------
                       100000
(1 row)

Time: 477089.456 ms
select_with_clustered_index
-----------------------------
                       100000
(1 row)

Time: 381880.965 ms
Timing is off.




---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Re: [PATCHES] Bitmapscan changes

От:
Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Дата:

On Mar 17, 2007, at 10:33 PM, Luke Lonergan wrote:

> Wow, nice!
>
> Can you tell us:
> - how big is the table
> - cardinality of the column
> - how big is the index in each case
> - how much memory on the machine
> - query and explain analyze
>

All I changed, was the 400k to 150k
512MB of ram, as I said earlier. And it is running 64bit kernel,  
32bit user-land on linux 2.6.20

query and explain is going to run for a while, so I'll leave it - as  
it is going to be the same on other machines (much faster ones).
postgres=#  select pg_size_pretty( pg_relation_size 
( 'narrowtable_index' ) );
pg_size_pretty
----------------
321 MB
(1 row)

postgres=#  select pg_size_pretty( pg_relation_size 
( 'narrowtable2_clustered_index' ) );
pg_size_pretty
----------------
3960 kB
(1 row)

(so there's quite a difference).

Judging from noises coming out of machine, there was pretty loads of  
I/O activity. and funny enough, one CPU was stucked on 'wait' up to  
80% most of the time.

the 'cardinality', as I guess, uniqueness is the same as intended in  
original test. Like I said, only table size was changed.

select count(distinct key) from narrowtable; and select count(*) from  
narrowtable; are the same - 15000000


hth.


-- 
Grzegorz Jaskiewicz

C/C++ freelance for hire






FAQ