Re: KVP table vs. hstore - hstore performance (Was: Postgres NoSQL emulation) - Mailing list pgsql-performance

From Craig Ringer
Subject Re: KVP table vs. hstore - hstore performance (Was: Postgres NoSQL emulation)
Date
Msg-id 4DD06EF3.7030003@postnewspapers.com.au
Whole thread Raw
In response to KVP table vs. hstore - hstore performance (Was: Postgres NoSQL emulation)  (Stefan Keller <sfkeller@gmail.com>)
List pgsql-performance
On 14/05/11 18:10, Stefan Keller wrote:
> Hi,
>
> I am conducting a benchmark to compare KVP table vs. hstore and got
> bad hstore performance results when the no. of records is greater than
> about 500'000.
>
> CREATE TABLE kvp ( id SERIAL PRIMARY KEY, key text NOT NULL, value text );
> -- with index on key
> CREATE TABLE myhstore ( id SERIAL PRIMARY KEY, obj hstore NOT NULL );
> -- with GIST index on obj
>
> Does anyone have experience with that?

What are your queries?

What does EXPLAIN ANALYZE report on those queries?

Did you ANALYZE your tables after populating them?

--
Craig Ringer

pgsql-performance by date:

Previous
From: Dan Birken
Date:
Subject: Re: slow loop inserts?
Next
From: Craig Ringer
Date:
Subject: Re: reducing random_page_cost from 4 to 2 to force index scan