Re: Parallel Seq Scan

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Parallel Seq Scan
Дата
Msg-id 1436250789.4369.160.camel@jeff-desktop
обсуждение исходный текст
Ответ на Re: Parallel Seq Scan  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
On Tue, 2015-07-07 at 09:27 +0530, Amit Kapila wrote:

> I am not sure how many blocks difference could be considered okay for
> deviation?

In my testing (a long time ago) deviations of tens of blocks didn't show
a problem.

However, an assumption of the sync scan work was that the CPU is
processing faster than the IO system; whereas the parallel scan patch
assumes that the IO system is faster than a single core. So perhaps the
features are incompatible after all. Only testing will say for sure.

Then again, syncscans are designed in such a way that they are unlikely
to hurt in any situation. Even if the scans diverge (or never converge
in the first place), it shouldn't be worse than starting at block zero
every time.

I'd prefer to leave syncscans intact for parallel scans unless you find
a reasonable situation where they perform worse. This shouldn't add any
complexity to the patch (if it does, let me know).

Regards,Jeff Davis






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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: multivariate statistics / patch v7
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: raw output from copy