Re: again on index usage
Don Baccus <dhogaza@pacifier.com>
From: Don Baccus <dhogaza@pacifier.com>
To: Hannu Krosing <hannu@tm.ee>
Cc: Zeugswetter Andreas SB SD <ZeugswetterA@spardat.at>, Bruce Momjian <pgman@candle.pha.pa.us>, Daniel Kalchev <daniel@digsys.bg>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org
Date: 2002-01-12T15:44:29Z
Lists: pgsql-hackers
Hannu Krosing wrote: > One radical way to get better-than-average cache behaviour in such > pathologigal casescases would be to discard a _random_ page instead of > LRU page (perhaps tuned to not not select from 1/N of pages on that are > MRU) Yep, that's one of the ways to improve performance when the same table's being scanned sequentially multiple times, or where different queries sometimes scan it sequentially, other times by index. MRU would help if you're constantly doing sequential scans. So would flipping the scan order depending on what's in the cache :) But none of these would mitigate the effects on other concurrent queries that don't query the large table at all. -- Don Baccus Portland, OR http://donb.photo.net, http://birdnotes.net, http://openacs.org