Re: [WIP] cache estimates, cache access cost - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: [WIP] cache estimates, cache access cost
Date
Msg-id 4DFE2E9B020000250003E8C9@gw.wicourts.gov
Whole thread Raw
In response to [WIP] cache estimates, cache access cost  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
Responses Re: [WIP] cache estimates, cache access cost
List pgsql-hackers
Greg Smith  wrote:
> I'm not too concerned about the specific case you warned about
> because I don't see how sequential scan vs. index costing will be
> any different on a fresh system than it is now.
I think the point is that if, on a fresh system, the first access to
a table is something which uses a tables scan -- like select count(*)
-- that all indexed access would then  tend to be suppressed for that
table.  After all, for each individual query, selfishly looking at
its own needs in isolation, it likely *would* be faster to use the
cached heap data.
I see two ways out of that -- one hard and one easy.  One way would
be to somehow look at the impact on the cache of potential plans and
the resulting impact on overall throughput of the queries being run
with various cache contents.  That's the hard one, in case anyone
wasn't clear.  ;-)  The other way would be to run some percentage of
the queries *without* considering current cache contents, so that the
cache can eventually adapt to the demands.
-Kevin


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: [WIP] cache estimates, cache access cost
Next
From: Greg Smith
Date:
Subject: Re: pgbench--new transaction type