[Zope] ZODB conflict error AFTER adding an 'Access Rules'

Michael Dunstan michael at looma.co.nz
Fri Sep 26 19:35:42 EDT 2003


On Saturday, September 27, 2003, at 05:01 AM, Dieter Maurer wrote:

> Michael Dunstan wrote at 2003-9-26 11:34 +1200:
>> ...
>> Jean, try to avoid needless writes to the session object. For example
>> throw some conditional code in your access rule of the form:
>>
>>      if session.get(key) != value:
>>          session.set(key,value)
>>
>> That should help reduce the number of "ConflictError"s.
>
> Note, however, that reading the session writes it (in order
> to update the expiration deadline).

I figured that there is some kind of filtering for updating the 
expiration deadline. The filtering reduces excessive writes at the 
expense of the accuracy of the deadline.

Michael




More information about the Zope mailing list