Re: Search from newer tuples first, vs older tuples first?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Search from newer tuples first, vs older tuples first?
Дата
Msg-id 4798.1020314981@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Search from newer tuples first, vs older tuples first?  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Ответы Re: Search from newer tuples first, vs older tuples first?
Список pgsql-hackers
Lincoln Yeoh <lyeoh@pop.jaring.my> writes:
> But does Postgresql visit the older tuples first moving to the newer ones, 
> or the newer ones first?

It's going to visit them *all*.  Reordering won't improve the
performance.

FWIW I think that with the present implementation of btree, the newer
tuples actually will be visited first --- when inserting a duplicate
key, the new entry will be inserted to the left of the equal key(s)
already present.  But it doesn't matter.  The only way to speed this
up is to eliminate some of the visitings, which requires keeping more
info in the index than we presently do.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Mac OS X: system shutdown prevents checkpoint
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: [GENERAL] Using views and MS access via odbc