Re: vacuum, performance, and MVCC

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: vacuum, performance, and MVCC
Дата
Msg-id 1150997436.745.146.camel@home
обсуждение исходный текст
Ответ на Re: vacuum, performance, and MVCC  ("Mark Woodward" <pgsql@mohawksoft.com>)
Ответы Re: vacuum, performance, and MVCC  ("Mark Woodward" <pgsql@mohawksoft.com>)
Re: vacuum, performance, and MVCC  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Список pgsql-hackers
> > You mean systems that are designed so exactly, that they can't take 10%
> > performance change ?
> 
> No, that's not really the point, performance degrades over time, in one
> minute it degraded 10%.
> 
> The update to session ratio has a HUGE impact on PostgreSQL. If you have a
> thousand active sessions, it may take a minute to degrade 10% assuming
> some level of active vs operations per session per action.

So don't do an update. Multiple updates to the same row block anyway
which is generally not something you want anyway.

If you INSERT into multiple partitions (by time -- say one per minute)
and TRUNCATE periodically (30 minute old partitions for 30 minute
expiry) it works much better. Expiring the session is quite fast as well
since they'll go away with the truncate.

Index on sessionid and time and grab the row with the most recent time.
-- 



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

Предыдущее
От: "Mark Woodward"
Дата:
Сообщение: Re: vacuum, performance, and MVCC
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: xlog viewer proposal