Re: [PERFORM] query performance with hstore vs. non-hstore

2014-09-04 Thread Huang, Suya
---Original Message- From: pgsql-performance-ow...@postgresql.org [mailto:pgsql-performance-ow...@postgresql.org] On Behalf Of David G Johnston Sent: Tuesday, September 02, 2014 1:38 PM To: pgsql-performance@postgresql.org Subject: Re: [PERFORM] query performance with hstore vs. non-hs

Re: [PERFORM] query performance with hstore vs. non-hstore

2014-09-01 Thread David G Johnston
Huang, Suya wrote > See output of explain (analyze,timing off), the total runtime is close to > the one enable timing. Calling 43s "close to" 70s doesn't sound right... > dev=# explain (analyze, timing off) select cha_type, sum(visits) from > (select (each(visits)).key as cha_type,(each(visits))

Re: [PERFORM] query performance with hstore vs. non-hstore

2014-09-01 Thread Huang, Suya
.7382.59 rows=371759 width=47) (actual rows=371759 loops=1) Total runtime: 69521.570 ms (11 rows) Thanks, Suya From: Pavel Stehule [mailto:pavel.steh...@gmail.com] Sent: Monday, September 01, 2014 5:07 PM To: Huang, Suya Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] query performa

Re: [PERFORM] query performance with hstore vs. non-hstore

2014-09-01 Thread Pavel Stehule
...@gmail.com] > *Sent:* Monday, September 01, 2014 4:22 PM > *To:* Huang, Suya > *Cc:* pgsql-performance@postgresql.org > *Subject:* Re: [PERFORM] query performance with hstore vs. non-hstore > > > > Hi > > In this use case hstore should not help .. there is relative hig

Re: [PERFORM] query performance with hstore vs. non-hstore

2014-08-31 Thread Huang, Suya
, Suya Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] query performance with hstore vs. non-hstore Hi In this use case hstore should not help .. there is relative high overhead related with unpacking hstore -- so classic schema is better. Hstore should not to replace well normalized schema

Re: [PERFORM] query performance with hstore vs. non-hstore

2014-08-31 Thread Pavel Stehule
Hi In this use case hstore should not help .. there is relative high overhead related with unpacking hstore -- so classic schema is better. Hstore should not to replace well normalized schema - it should be a replace for some semi normalized structures as EAV. Hstore can have some profit from TO

[PERFORM] query performance with hstore vs. non-hstore

2014-08-31 Thread Huang, Suya
Hi , I'm tweaking table layout to get better performance of query. One table doesn't use hstore but expand all metrics of cha_type to different rows. The other table has hstore for metrics column as cha_type->metrics so it has less records than the first one. I would be expecting the query on