[ZODB-Dev] Inquiry: subtransaction commits w/ FileStorage
sean.upton@uniontrib.com
sean.upton@uniontrib.com
Tue, 11 Dec 2001 09:41:49 -0800
I'm running Zope 2.4.2 on Debian using FileStorage. Does anybody know where
subtransactions get saved/swapped to disk? I'm trying to ascertain that
they are indeed getting committed to disk, and not just failing and keeping
everything in memory until the final commit. I know that for me,
$INSTANCE_HOME/var/Data.fs.tmp gets written to before the final commit on
larger transactions, but I'm not sure where (or whether) subtransactions are
being saved to disk.
My code looks like this:
#numobjects is the number of objects to create.
for i in range(int(numobjects)):
recordID = str(i+1)
obj=POSCirculationRecord(recordID)
self._setOb(recordID, obj)
obj = self._getOb(recordID)
obj.index_object()
if i%1000 == 0:
get_transaction().commit(1)
Any pointers would be appreciated.
Thanks,
Sean
=========================
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
sean.upton@uniontrib.com
=========================