Re: COUNT(*) and index-only scans

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: COUNT(*) and index-only scans
Дата
Msg-id CAM-w4HO=zSNmyZcrtx9PYxyqxjObEgO+YcP_mRA4AUucZgh6hA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: COUNT(*) and index-only scans  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
On Wed, Oct 12, 2011 at 4:26 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
>> But it matters a *lot* when they heap pages are not in shared
>> buffers
>
> Yeah, obviously it matters more if you actually need to add a random
> disk read.

To be fair the indexes are also random I/O. So the case that really
matters is when the index fits in RAM but the heap does not.

-- 
greg


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: COUNT(*) and index-only scans
Следующее
От: Tom Lane
Дата:
Сообщение: Re: COUNT(*) and index-only scans