Re: Script to compute random page cost

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Script to compute random page cost
Дата
Msg-id 1031572846.15580.36.camel@jester
обсуждение исходный текст
Ответ на Re: Script to compute random page cost  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Mon, 2002-09-09 at 02:13, Bruce Momjian wrote:
> 
> OK, turns out that the loop for sequential scan ran fewer times and was
> skewing the numbers.  I have a new version at:
> 
>     ftp://candle.pha.pa.us/pub/postgresql/randcost
> 
> I get _much_ lower numbers now for random_page_cost.

The current script pulls way more data for Sequential scan than random
scan now.

Random is pulling a single page (count=1 for dd) with every loop. 
Sequential does the same number of loops, but pulls count > 1 in each.

In effect, sequential is random with more data load -- which explains
all of the 0.9's.

 Rod Taylor



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

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: Script to compute random page cost
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bug?