Re: Performance of count(*)

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Performance of count(*)
Дата
Msg-id 20070322143713.GA34905@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Performance of count(*)  (Andreas Kostyrka <andreas@kostyrka.org>)
Список pgsql-performance
On Thu, Mar 22, 2007 at 01:29:46PM +0100, Andreas Kostyrka wrote:
> * Andreas Tille <tillea@rki.de> [070322 13:24]:
> > Well, to be honest I'm not really interested in the performance of
> > count(*).  I was just discussing general performance issues on the
> > phone line and when my colleague asked me about the size of the
> > database he just wonderd why this takes so long for a job his
> > MS-SQL server is much faster.  So in principle I was just asking
> > a first question that is easy to ask.  Perhaps I come up with
> > more difficult optimisation questions.
>
> Simple. MSSQL is optimized for this case, and uses "older"
> datastructures. PG uses a MVCC storage, which is not optimized for
> this usecase. It's quite fast for different kinds of queries.

Ask about performing concurrent selects, inserts, updates, and
deletes in SQL Server and about the implications on ACID of locking
hints such as NOLOCK.  Then consider how MVCC handles concurrency
without blocking or the need for dirty reads.

--
Michael Fuhr

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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Lower Random Access Time vs RAID 0 / 1
Следующее
От: Michael Stone
Дата:
Сообщение: Re: Performance of count(*)