Re: Query performanc issue - too many table?
От
Tom Lane
Тема
Re: Query performanc issue - too many table?
Дата
Msg-id
13938.1037907911@sss.pgh.pa.us
Ответ на
Query performanc issue - too many table? (Marc Mitchell)
Список
Дерево обсуждения
Cluster Database "Al-Karim Bhamani (LCL)" <ABhaman@ngco.com>
Re: Cluster Database Chris Miles <chris_pg002@psychofx.com>
"Marc Mitchell" writes: > I am having a problem with the below SQL taking an extreme amount of time > to run. The problem is that the explain looks great with all index scans. > But the query itself takes minutes to run. The query contains 11 tables. > We've found that by dropping any one table, performance reverts to being > nearly instantaneous. 11 tables is the default GEQO threshold, so I'm wondering if the GEQO planner is missing the best plan. It's hard to tell much though without seeing plans for *both* queries you are comparing. EXPLAIN ANALYZE output would be much more useful than just EXPLAIN, too. regards, tom lane
В списке pgsql-admin по дате отправления