Martin Bowes wrote:
Quote:
I'm also a little concerned about the cache. The table is 8k pages and
my 8k cache has 2000 single page buffers and 1000 group buffers, each
group being 8pages. The cache hit rate is 88% so I'm thinking of
expanding it to include a lot more group buffers as my GREAD/READ ratio
is 33. |
Go ahead and try, but unless you can create enough group buffers to hold
the entire table you'll get just as much benefit from one group buffer.
Imagine your table fits exactly into the 1,000 existing group buffers.
The first time you scan the table it all gets loaded into those
buffers. The second time you scan, the query is satisfied entirely from
the group buffers and you get to go home early.
Now suppose your table is even 1 pages bigger. You get almost all the
way to the end of the scan, then you have to overwrite the first group
buffer to get that last page. Now you go to scan the table a second
time and the first page isn't in a group buffer. No problem; look for
the least-recently used buffer, which is the second one, and load the
first group into that. Then you go to get the next group, but you just
overwrote it. No problem; look for the least recently-used buffer,
which is the third one.... And so on; you get the idea.
--
Roy
UK Ingres User Association Conference 2009 will be on Tuesday June 9, 2009
Go to http://www.iua.org.uk/join to get on the mailing list.