Re: [PATCH] Equivalence Class Filters

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: [PATCH] Equivalence Class Filters
Дата
Msg-id CANP8+jL+f2cFP7PnTNxU-g5kf58vMS_DGyffieOax3Ycn0nb7A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Equivalence Class Filters  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On 7 December 2015 at 16:55, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
 
Unfortunately I've seen a lot of millisecond queries that have 6 figure estimates, due to data being in cache. So I'm not sure how practical that would be.

We seem to be agreed that longer running queries may benefit from more thorough optimization.

I like the idea of specifying a goal for the optimization, so the user can explicitly ask to spend more time. But I would also rather that I didn't have to do that at all, by using a heuristic that allows us to act sensibly even when not explicitly instructed by the user. It Just Works.

We can decide what the heuristic limit is based upon the cost of the technique. I don't think it matters how quick your CPU is, it matters how long planning takes as a % of the whole expected execution time.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Using quicksort for every external sort run
Следующее
От: Gavin Flower
Дата:
Сообщение: Re: [PATCH] Equivalence Class Filters