Re: [SQL] Yet Another (Simple) Case of Index not used

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Yet Another (Simple) Case of Index not used
Дата
Msg-id 23265.1050784009@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] Yet Another (Simple) Case of Index not used  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
> In PostgreSQL:
> a) Put table_count_A on superfast media like a RAM card so that random seeks
> after 10,000 updates do not become a significant delay;

As long as we're talking ugly, here ;-)

You could use a sequence to hold the aggregate counter.  A sequence
isn't transactional and so does not accumulate dead tuples.  "setval()"
and "select last_value" should have constant-time performance.

            regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [SQL] Yet Another (Simple) Case of Index not used
Следующее
От: Kevin Brown
Дата:
Сообщение: Re: [SQL] Yet Another (Simple) Case of Index not used