"fsdump/FileStorage" patch adding size information for transactions/object records (was: Re: [ZODB-Dev] RE: [Zope] Analyzing ZODB objects)

Dieter Maurer dieter at handshake.de
Wed Oct 29 14:55:18 EST 2003


Christian Robottom Reis wrote at 2003-10-28 23:44 -0200:
 > On Tue, Oct 28, 2003 at 07:44:05PM +0100, Dieter Maurer wrote:
 > >  > > I extended the "fsdump" utility to include the (pickle) sizes 
 > >  > > of the object records contained in a transaction and to 
 > >  > > restrict the range of dumped transactions.
 > >  > > 
 > >  > > This has been enough to analyse the problem: ZCatalog's 
 > >  > > Metadata records caused a transaction size to grow from an 
 > >  > > expected few hundred bytes to about 500 kB.
 > >
 > > But, I can make the extensions available.
 > 
 > I'd like to see your fsdump version ...

Patch attached.

The patch also enhances "FileStorage" and lets its "UndoSearch._readnext"
provide information about the transaction size. This is very valuable
when you want to spot strange transaction sizes via Zope's "Undo" tab
(much more convenient than "fsdump").

-- 
Dieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fsdump.pat
Type: application/x-patch
Size: 1809 bytes
Desc: patch: restrict fsdump to a range;
	add size info for object records; add size info for UndoSearch
Url : http://lists.zope.org/pipermail/zodb-dev/attachments/20031029/576ec3ec/fsdump.bin


More information about the ZODB-Dev mailing list