Re: Avoiding redundant fetches of btree index metapages

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Avoiding redundant fetches of btree index metapages
Дата
Msg-id 1146072553.3120.16.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Avoiding redundant fetches of btree index metapages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2006-04-26 at 12:53 -0400, Tom Lane wrote:
> > So we would be able to cache other items also?
> 
> Only to the extent that you can guarantee a stale cache entry isn't a
> problem.  We've already done the analysis involved for the existing
> metapage entries, but anything else would require more thought.  (And
> more cache flush events.)

You mean performance tests! Will do.

Methinks that cache flushing is the key to performance for that idea.

> > For that case we'd save N block accesses to locate the rightmost leaf
> > page.
> 
> Surely you mean log(N).

Depends what N is. I meant the level, not the number of rows.

--  Simon Riggs EnterpriseDB          http://www.enterprisedb.com/



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Avoiding redundant fetches of btree index metapages
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Regarding TODO item "%Add a separate TRUNCATE permission"