slow hashjoin - NTUP_PER_BUCKET again

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема slow hashjoin - NTUP_PER_BUCKET again
Дата
Msg-id CAFj8pRDV02NC00a1grdenYMwm=9s5finfsFYYKEo2FT6+e6X5w@mail.gmail.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Doc typo: lexems -> lexemes
Следующее
От: Gurjeet Singh
Дата:
Сообщение: Re: Correction to comment regarding atomicity of an operation