slow hashjoin - NTUP_PER_BUCKET again - Mailing list pgsql-hackers

From Pavel Stehule
Subject slow hashjoin - NTUP_PER_BUCKET again
Date
Msg-id CAFj8pRDV02NC00a1grdenYMwm=9s5finfsFYYKEo2FT6+e6X5w@mail.gmail.com
Whole thread Raw
List 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



pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Doc typo: lexems -> lexemes
Next
From: Gurjeet Singh
Date:
Subject: Re: Correction to comment regarding atomicity of an operation