[Zope] Re: [ZODB-Dev] Analyzing a ZODB.

Jim Fulton jim at zope.com
Sat Apr 5 11:56:28 EDT 2008

On Apr 5, 2008, at 11:49 AM, Manuel Vazquez Acosta wrote:
> Hi all,
> Recently I was appointed to improve a Plone's performance, and I have
> the following issue:
> I see too many transactions made by the anonymous user. I can  
> reproduce
> this behaviour: just watching the home page produces a transaction at
> /index by None.
> I wonder if there's a way to actually see what objects (or object  
> types)
> are modified by those transactions. So I can go directly to the source
> of the (surely innecesary) transaction.
> I tried analyze.py but I don't grasp the output accurately.

In a development environment, set a breakpoint (e.g. add "import pdb;  
pdb.set_trace()" in ZODB.Connection.Connection.register.

You'll be able to see exactly what is causing object changes.  I  
recommend doing this in the zope debugger, which makes it easy to run  
one request at a time.


Jim Fulton
Zope Corporation

More information about the Zope mailing list