[Zope-CMF] Re: five.intid and DirectoryView

Dieter Maurer dieter at handshake.de
Fri Jul 4 01:07:12 EDT 2008


Ross Patterson wrote at 2008-6-30 10:34 -0700:
> ...
>> Creating a savepoint seems to do the trick:
>>
>>>>> from persistent import Persistent
>>>>> import transaction
>>>>> app.pob = Persistent()
>>>>> app.pob._p_oid is None
>> True
>>>>> s = transaction.savepoint()
>>>>> app.pob._p_oid
>> '\x00\x00\x00\x00\x00\x00E\xfa'
>
>Would that be a problem causing ZODB bloat?

"savepoint" does not write to the main storage.
The main storage is only modified after the final "commit".



-- 
Dieter


More information about the Zope-CMF mailing list