Re: Why count(*) doest use index?

Поиск
Список
Период
Сортировка
От Glenn Maynard
Тема Re: Why count(*) doest use index?
Дата
Msg-id AANLkTikdXqVPCSTthxDWqN_BQ9vt5XOPAXLwhsjOvRTO@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why count(*) doest use index?  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Why count(*) doest use index?  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
On Sun, Mar 6, 2011 at 5:41 AM, Martijn van Oosterhout <kleptog@svana.org> wrote:
If it's really really important there are ways you can use trigger
tables and summary views to achieve the results you want. Except it's
expensive and when people are told that all of the sudden the count(*)
performance isn't so important any more. :)

That's often perfectly fine, with read-heavy, single-writer workloads.

I definitely wish there was a way to create indexes to track counters on various types of queries, even if it eliminates write concurrency on affected writes.  Doing it by hand is a pain.

--
Glenn Maynard

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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: FTS and words near one another
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: How to Create Table from CSV