AW: AW: Plans for solving the VACUUM problem

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: AW: Plans for solving the VACUUM problem
Дата
Msg-id 11C1E6749A55D411A9670001FA6879633682D5@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: AW: Plans for solving the VACUUM problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> A particular point worth making is that in the common case where you've
> updated the same row N times (without changing its index key), the above
> approach has O(N^2) runtime.  The indexscan will find all N index tuples
> matching the key ... only one of which is the one you are looking for on
> this iteration of the outer loop.

It was my understanding, that the heap xtid is part of the key now, and thus 
with a somewhat modified access, it would find the one exact row directly.
And in above case, the keys (since identical except xtid) will stick close 
together, thus caching will be good.

Andreas


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AW: Plans for solving the VACUUM problem
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Running config vars