[ZODB-Dev] ZODB and new style classes?

Jeremy Hylton jeremy@alum.mit.edu
Wed, 26 Jun 2002 23:27:11 -0400


> I've been using ZODB 4 (CVS checkout from the Zope-3x-branch and Zope3
> branch) Persistence + new-style classes for a few months now.  They
> work, but as has been mentioned before, the DB itself seems to have
> problems with invalidating objects that might be related to the changes
> for new-style classes.

I'm afraid I haven't had a chance to read the thread on your problems
closely.  Are you sure that it's a problem with invalidating objects?  It
sounded to me more like a problem with many of your threads not hitting
transaction boundaries regularly.  Now it may be that the explicit sync
method isn't working correctly in ZODB 4, and your code is the first code to
exercise it.

If you've got the time, it would be very helpful if you could boil down the
problem of a simple repeatable test case.  Then you'd force me to fix it,
and we can add it to the standard test suite to make sure it continues to
work in the future.

> Of course, that requires using ZODB4, which isn't a recommended activity
> at the moment I'm told :) .

You put the smiling their, so I think you've got the right idea, but I feel
like I should clarify.  There's no problem with using ZODB 4, but I wouldn't
trust it for production code and I certainly wouldn't distribute code using
it to other people yet.  I'm very happy to have non-Zope users experiment
with and test the ZODB 4 code.  There are a lot of internal changes, and we
have a number of significant API changes planned for the near future.  Such
helpful to get feedback from a wide range of users.

Jeremy