seq scan startup cost

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема seq scan startup cost
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA41EB49B@m0114.s-mxs.net
обсуждение исходный текст
Ответы Re: seq scan startup cost
Список pgsql-hackers
Imho the simplification, that seq scan startup cost is 0.0 is
only valid when we expect to return most of the rows.

When expecting only 1 row, imho the costs need to be 50 % for
startup and 50 % rest. Assuming, that on average the row will be 
in the middle of that relation file.
When returning 10% of the rows startup would be 10 % ...

The reasoning beeing, that you need to read a few pages before you 
find the first match. 

Andreas


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

Предыдущее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: again on index usage
Следующее
От: Daniel Kalchev
Дата:
Сообщение: Re: again on index usage