Re: Slow COUNT

Поиск
Список
Период
Сортировка
От Poul Møller Hansen
Тема Re: Slow COUNT
Дата
Msg-id 43908A96.2010205@pbnet.dk
обсуждение исходный текст
Ответ на Re: Slow COUNT  (Rodrigo Gonzalez <rjgonzale@gmail.com>)
Ответы Re: Slow COUNT  (Rodrigo Gonzalez <rjgonzale@gmail.com>)
Re: Slow COUNT  (Jaime Casanova <systemguards@gmail.com>)
Список pgsql-general
Rodrigo Gonzalez wrote:
> I answer here so each one can help you.
>
> Cannot understand what you mean....index is numbered? Are you talking
> about "autoincrement" as called in mysql? use sequences please
>

Sorry, forgot that your email address was in the reply-to field.

I was seeking a solution on how to make a faster count on a lot of rows,
and I was wondering on the difference between PostgreSQL's and MySQL's
(MyISAM) of handling counts.

I understand the advantages of MVCC compared to row/table locking.
And as far as I have understood PostgreSQL count the rows looping
through all rows, and that's why it takes that long when there are many
rows.

But how is MySQL (MyISAM) doing it, and why doesn't that way work in
the MVCC model.


Thanks,
  Poul


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

Предыдущее
От: "Francesco Formenti - TVBLOB S.r.l."
Дата:
Сообщение: [Fwd: Re: deadlock on the same relation]
Следующее
От: elein
Дата:
Сообщение: Adding order bys to the view definitions (7.4)