Re: Order by (for 15 rows) adds 30 seconds to query time

Поиск
Список
Период
Сортировка
От Matthew Wakeling
Тема Re: Order by (for 15 rows) adds 30 seconds to query time
Дата
Msg-id alpine.DEB.2.00.0912021104380.25000@aragorn.flymine.org
обсуждение исходный текст
Ответ на Re: Order by (for 15 rows) adds 30 seconds to query time  (Jean-Michel Pouré <jmpoure@free.fr>)
Ответы Re: Order by (for 15 rows) adds 30 seconds to query time  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-performance
On Tue, 1 Dec 2009, Jean-Michel Pouré wrote:
> PostgreSQL query analyzer needs to run a couple of times before it can
> rewrite and optimize the query. Make sure demand_id, id and join IDs
> carry indexes.

Huh? At what point does the planner carry over previous plans and use them
to further optimise the query?

But perhaps the biggest factor here is calling a five table join a "pretty
simple query".

Matthew

--
 Prolog doesn't have enough parentheses. -- Computer Science Lecturer

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

Предыдущее
От: Richard Neill
Дата:
Сообщение: Re: Order by (for 15 rows) adds 30 seconds to query time
Следующее
От: Laurent Laborde
Дата:
Сообщение: Re: Cost of sort/order by not estimated by the query planner