Re: How would you store read/unread topic status?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: How would you store read/unread topic status?
Дата
Msg-id 603c8f070906230804od43a415j5e96789edd73ecb9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How would you store read/unread topic status?  (Mathieu Nebra <mateo21@siteduzero.com>)
Ответы Re: How would you store read/unread topic status?  (Mathieu Nebra <mateo21@siteduzero.com>)
Список pgsql-performance
>> > Which pg version are you using?
>
> I should have mentionned that before sorry: PostgreSQL 8.2

I think there is an awful lot of speculation on this thread about what
your problem is without anywhere near enough investigation.  A couple
of seconds for an update is a really long time, unless your server is
absolutely slammed, in which case probably everything is taking a long
time.  We need to get some more information on what is happening here.
 Approximately how many requests per second are you servicing?  Also,
can you:

1. Run EXPLAIN ANALYZE on a representative UPDATE statement and post
the exact query and the output.

2. Run VACUUM VERBOSE on your database and send the last 10 lines or
so of the output.

3. Try your UPDATE statement at a low-traffic time of day and see
whether it's faster than it is at a high-traffic time of day, and by
how much.  Or dump your database and reload it on a dev server and see
how fast it runs there.

...Robert

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

Предыдущее
От: Mathieu Nebra
Дата:
Сообщение: Re: How would you store read/unread topic status?
Следующее
От: Guillaume Cottenceau
Дата:
Сообщение: Re: How would you store read/unread topic status?