Re: hash index improving v3

From: "Alex Hunsaker" <badalex(at)gmail(dot)com>
To: "Kenneth Marshall" <ktm(at)rice(dot)edu>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Xiao Meng" <mx(dot)cogito(at)gmail(dot)com>, "Zdenek Kotala" <Zdenek(dot)Kotala(at)sun(dot)com>, pgsql-patches(at)postgresql(dot)org, "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Subject: Re: hash index improving v3
Date: 2008-09-10 02:45:10
Message-ID: 34d269d40809091945n2cebde54qe974aeba00986564@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Tue, Sep 9, 2008 at 7:23 PM, Alex Hunsaker <badalex(at)gmail(dot)com> wrote:
> create table test_hash(num int8);
> insert into test_hash (num) select generate_series(1, 2000000);
> create index test_hash_num_idx on test_hash (num);
>
> pgbench -c1 -n -t10000 -f bench_index.sql
> cvs head: tps = 3161.500511
> v5: tps = 7248.808839

Whoa... Ignore those numbers!

It would bee nice to actually test with a hash index... and my cvs
head atm had cassert on.. sorry about that.

create table test_hash(num int8);
insert into test_hash (num) select generate_series(1, 2000000);
create index test_hash_num_idx on test_hash using hash (num);

pgbench -c1 -n -t100000 -f bench_index.sql
cvs head: tps = 7345.69432
v5: tps = 7526.290462

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-09-10 02:50:57 Re: Keeping creation time of objects
Previous Message Robert Haas 2008-09-10 02:30:41 Re: [PATCH] Cleanup of GUC units code

Browse pgsql-patches by date

  From Date Subject
Next Message Alex Hunsaker 2008-09-10 03:04:58 Re: hash index improving v3
Previous Message Alex Hunsaker 2008-09-10 01:41:40 Re: [PATCHES] to_date() validation