Re: Including Snapshot Info with Indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Including Snapshot Info with Indexes
Дата
Msg-id 26648.1192200358@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Including Snapshot Info with Indexes  (Andreas Joseph Krogh <andreak@officenet.no>)
Ответы Re: Including Snapshot Info with Indexes  ("Gokulakannan Somasundaram" <gokul007@gmail.com>)
Re: Including Snapshot Info with Indexes  ("Gokulakannan Somasundaram" <gokul007@gmail.com>)
Список pgsql-hackers
Andreas Joseph Krogh <andreak@officenet.no> writes:
> Will $SUBJECT make it possible for count(*) to use index? This is a much
> wanted feature.

If you mean "count(*) will become instantaneous", no it won't.  It would
get faster, but probably not by more than a factor of 10 or so,
corresponding to the size ratio between index and table.  Remember that
the proposal is going to bloat indexes pretty badly: a simple index on
an int4 column will double in size, more or less.  So that ratio will
be much less favorable than it is today.

Personally I think the bloat problem will doom this entire approach.
The distributed costs of that will outweigh the speedups that can be
achieved for specific queries.  The OP is free to try to prove this
fear wrong, but no amount of discussion will constitute such a proof;
only a testable implementation.
        regards, tom lane


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Locale + encoding combinations
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_tablespace_size()