Re: Should from_collapse be switched off? (queries 10 times faster)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Should from_collapse be switched off? (queries 10 times faster)
Дата
Msg-id 18405.1521814459@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Should from_collapse be switched off? (queries 10 times faster)  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Should from_collapse be switched off? (queries 10 times faster)  (Peter <pmc@citylink.dinoex.sub.org>)
Список pgsql-performance
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> Peter wrote:
>> I could not find any documentation or evaluation that would say
>> that from_collapse can have detrimental effects. Even less, which
>> type of queries may suffer from that.

> https://www.postgresql.org/docs/current/static/explicit-joins.html
> states towards the end of the page that the search tree grows
> exponentially with the number of relations, and from_collapse_limit
> can be set to control that.

It's conceivable that the OP's problem is actually planning time
(if the query joins sufficiently many tables) and that restricting
the cost of the join plan search is really what he needs to do.
Lacking any further information about the problem, we can't say.

We can, however, point to

https://wiki.postgresql.org/wiki/Slow_Query_Questions

concerning how to ask this type of question effectively.

            regards, tom lane


В списке pgsql-performance по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Should from_collapse be switched off? (queries 10 times faster)
Следующее
От: Peter
Дата:
Сообщение: Re: Should from_collapse be switched off? (queries 10 times faster)