From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | slow hashjoin - NTUP_PER_BUCKET again |
Date: | 2012-09-12 08:08:53 |
Message-ID: | CAFj8pRDV02NC00a1grdenYMwm=9s5finfsFYYKEo2FT6+e6X5w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello
I try to identify of our slow queries - we have lot of queries like
select count(*) from a,b where a.a = b.b;
our servers has usually enough memory (we do OLAP) - we use some
pooling for limiting memory expensive queries - and I found so
hashjoin based queries are significantly slower than mergejoin
queries.
The profiler show me a most expensive function ExecScanHashBucket.
When I decrease NTUP_PER_BUCKET from 10 to 3, then there was 2 times
speedup of these queries.
Can I expect some issue with using lower value in production?
Regards
Pavel Stehule
From | Date | Subject | |
---|---|---|---|
Next Message | Gurjeet Singh | 2012-09-12 10:44:37 | Re: Correction to comment regarding atomicity of an operation |
Previous Message | Magnus Hagander | 2012-09-12 07:25:40 | Re: Doc typo: lexems -> lexemes |