Re: Confusion and Questions about blocks read

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: Confusion and Questions about blocks read
Дата
Msg-id 4515265E.7080902@logix-tt.com
обсуждение исходный текст
Ответ на Re: Confusion and Questions about blocks read  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Confusion and Questions about blocks read  (Jim Nasby <jim@nasby.net>)
Список pgsql-performance
Hi, Tom,

Tom Lane wrote:
> "Alex Turner" <armtuk@gmail.com> writes:
>> Home come the query statistics showed that 229066 blocks where read given
>> that all the blocks in all the tables put together only total 122968?
>
> You forgot to count the indexes.  Also, the use of indexscans in the
> mergejoins probably causes multiple re-reads of some table blocks,
> depending on just what the physical ordering of the rows is.

As far as I understand, Index Bitmap Scans improve this behaviour, by
ensuring that every table block is read only once.

Btw, would it be feasible to enhance normal index scans by looking at
all rows in the current table block whether they meet the query
criteria, fetch them all, and blacklist the block for further revisiting
during the same index scan?

I think that, for non-sorted cases, this could improve index scans a
little, but I don't know whether it's worth the effort, given that
bitmap indidex scans exist.

Thanks,
Markus



--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

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

Предыдущее
От: "Denis Lussier"
Дата:
Сообщение: Re: recommended benchmarks
Следующее
От: "Guido Neitzer"
Дата:
Сообщение: Re: Opteron vs. Xeon "benchmark"