Re: Slow query when the select list is big
От
Karl Czajkowski
Тема
Re: Slow query when the select list is big
Дата
Msg-id
20160509174712.GB10193@moraine.isi.edu
Ответ на
Re: Slow query when the select list is big (Sterpu Victor)
Список
Дерево обсуждения
Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
Re: Slow query when the select list is big Rob Imig <rimig88@gmail.com>
Re: Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
Re: Slow query when the select list is big John R Pierce <pierce@hogranch.com>
Re: Slow query when the select list is big "David G. Johnston" <david.g.johnston@gmail.com>
Re: Slow query when the select list is big David Rowley <david.rowley@2ndquadrant.com>
Re: Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
Re: Slow query when the select list is big Karl Czajkowski <karlcz@isi.edu>
Re: Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
Re: Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
Re: Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
Re: Slow query when the select list is big Victor Yegorov <vyegorov@gmail.com>
Re: Slow query when the select list is big "Sterpu Victor" <victor@caido.ro>
On May 09, Sterpu Victor modulated: > I tested it now, EXPLAIN ANALYZE is not showing LEFT JOIN at all if > I don't select from the joined tables. > Now is clear why the query is so mutch more efficient when I select > less data. > > Thank you > With so many joins, you may want to experiment with postgresql parameter tuning. These parameters in particular can have a significant impact on the plan choice and execution time: work_mem effective_cache_size from_collapse_limit join_collapse_limit geqo_threshold geqo_effort Setting these to appropriately large values can make analytic queries run much faster. Of course, setting them too high can also make for very bad plans which cause the DB server to over subscribe its memory and start swapping... it requires a bit of reading and a bit of experimentation to find ideal settings for your environment. Karl
В списке pgsql-general по дате отправления
От: Joshua D. Drake
Дата:
От: Robert Anderson
Дата: