From: | Mark Kirkwood <markir(at)coretech(dot)co(dot)nz> |
---|---|
To: | pgsql(at)mohawksoft(dot)com |
Cc: | Bruno Wolff III <bruno(at)wolff(dot)to>, Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Frequently updated tables |
Date: | 2004-06-09 22:55:44 |
Message-ID: | 40C79570.6040309@coretech.co.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
pgsql(at)mohawksoft(dot)com wrote:
>
>I have been talking about two types of problems which are both based on
>PostgreSQL's behavior with frequently updated tables.
>
>Summary table: In the single row table system, you have to vacuum very
>requently, and this affects performance.
>
>Frequently updated tables: think about the session table for a website.
>Each new user gets a new session row. Everytime they refresh or act in the
>site, the row is updated. When they leave or their session times out, the
>row is deleted. I wrote a RAM only session manager for PHP because
>PostgreSQL couldn't handle the volume. (2000 hits a second)
>
>
>
It would be interesting to see if the vacuum delay patch, fsm tuning +
vacuum scheduling could have changed this situation. Clearly there is an
issue here (hence a patch...), but ISTM that just as significant is the
fact that it is difficult to know how to configure the various bits and
pieces, and also difficult to know if it has been done optimally.
>If you have an active site, with hundreds or thousands of hits a second,
>vacuuming the table constantly is not practical.
>
>I don't think anyone who has seriously looked at these issues has
>concluded that PostgreSQL works fine in these cases. The question is what,
>if anything, can be done? The frequent update issue really affects
>PostgreSQL's acceptance in web applications, and one which MySQL seems to
>do a better job.
>
>
>
>
As an aside, I have had similar issues with DB2 and high update tables -
lock escalations (locklist tuning needed). It is not just
non-overwriting storage managers that need the magic tuning wand :-)
regards
Mark
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql | 2004-06-09 23:44:35 | Re: Frequently updated tables |
Previous Message | Stephan Szabo | 2004-06-09 22:35:39 | Re: Nested xacts: looking for testers and review |