[Zope-dev] Cache growing during single REQUEST
Tim Peters
tim at zope.com
Sun Sep 14 16:40:38 EDT 2003
[Tim]
>> ...
>> The ways in which MVCC loses will become obvious later <0.9 wink>.
[Chris Withers]
> Any ideas what they'll be yet?
Probably none for many apps. You'll be working with possibly non-current
data, so think of ways your apps could possibly be damaged by that. For
example, you're Bill Gates, using ZODB to track all your assets. A summary
report takes hours to generate, and by the time you get it, perhaps a few of
your billion-dollar overseas accounts were wiped out in the wee hours by an
adverse court judgment, but the total you get added in the account values as
of the time the report-generating transaction began. Oops. To the extent
that MVCC hides that you're working with non-current data, to that extent
also does an app relying on current data become vulnerable. When Bill is
contemplating fleeing the country during turbulent times, he presumably
needs to know how much cash he has right now, not what he had last night.
Most apps aren't like that, but a one-size-fits-all policy for long-running
transactions (like Bill's) doesn't exist.
More information about the Zope-Dev
mailing list