Managing Conflict Errors in Zope

Sometimes, your Zope application may be unnecessarily writing too many times to the database. An easy way to track what objects are being written to is to use the analyze.py utility. Look at the Count and Pct, and make sure that relatively static objects do not get too many writes.
$ ../../bin/python analyze.py Data.fs
Processed 13382 records in 5734 transactions
Average record size is 1742.56 bytes
Average transaction size is 4066.78 bytes
Types used:
Class Name Count TBytes Pct AvgSize
---------------------------------------------- ------- --------- ----- -------
AccessControl.User.User 1 138 0.0% 138.00
AccessControl.User.UserFolder 1 110 0.0% 110.00
App.ApplicationManager.ApplicationManager 1 122 0.0% 122.00
App.Product.Product 33 37807 0.2% 1145.67
App.Product.ProductFolder 1 2543 0.0% 2543.00
App.special_dtml.HTML 15 46973 0.2% 3131.53
BTrees.IIBTree.IIBTree 1190 137981 0.6% 115.95
BTrees.IIBTree.IIBucket 231 158454 0.7% 685.95

 

Tags:

Comments are closed.