[ZODB-Dev] Pickle size sums

Barry A. Warsaw barry@zope.com
Wed, 21 Nov 2001 10:10:46 -0500


>>>>> "CW" == Chris Withers <chrisw@nipltd.com> writes:

    CW> "Barry A. Warsaw" wrote:
    >>  Various ways, but the way I did it was to essentially
    >> instrument copyTransactionsFrom() and keep a sum of the `data'
    >> argument to storage.store().

    CW> Hurm, given that I'm not using copyTransactionsFrom, what
    CW> should I be looking to instrument?

Just to catch up...

I actually didn't use copyTransactionsFrom() either, but a migration
loop based on that function.  If you're own code calls Full.store()
itself, just keep a running total of the length of the `data'
argument.

If not, then perhaps you can instrument Full.store() to save the sum
itself in a module global?

-Barry