Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: kskim(at)bitnine(dot)net, Lukas Fittl <lukas(at)fittl(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)
Date: 2016-08-12 08:40:13
Message-ID: b908f40b-9cef-df31-f601-9cf1e18e0583@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

After examining the benchmark design - I see we are probably not being
helped by the repeated insertion of keys all of form 'userxxxxxxx'
leading to some page splitting.

However your index rebuild gets you from 5 to 3 GB - does that really
help performance significantly?

regards

Mark

On 11/08/16 16:08, Kisung Kim wrote:
> Thank you for your information.
> Here is the result:
>
> After insertions:
>
> ycsb=# select * from pgstatindex('usertable_pkey');
> version | tree_level | index_size | root_block_no | internal_pages |
> leaf_pages | empty_pages | deleted_pages | avg_leaf_density |
> leaf_fragmentation
> ---------+------------+------------+---------------+----------------+------------+-------------+---------------+------------------+--------------------
> 2 | 3 | 5488721920 | 44337 | 4464 |
> 665545 | 0 | 0 | 52 | 11
> (1 row)
>
> After rebuild:
>
>
> ycsb=# select * from pgstatindex('usertable_pkey');
> version | tree_level | index_size | root_block_no | internal_pages |
> leaf_pages | empty_pages | deleted_pages | avg_leaf_density |
> leaf_fragmentation
> ---------+------------+------------+---------------+----------------+------------+-------------+---------------+------------------+--------------------
> 2 | 3 | 3154296832 | 41827 | 1899 |
> 383146 | 0 | 0 | 90.08 |
> 0
>
>
> It seems like that rebuild has an effect to reduce the number of
> internal and leaf_pages and make more dense leaf pages.
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2016-08-12 08:41:44 Re: [PATCH] COPY vs \copy HINT
Previous Message Christoph Berg 2016-08-12 08:34:37 Re: [PATCH] COPY vs \copy HINT