Re: [ZODB-Dev] Re: What makes the ZODB slow?

2006-06-26 Thread Florent Guillaume
On 26 Jun 2006, at 15:02, Chris Withers wrote: Florent Guillaume wrote: BTrees perform best when keys' prefixes are randomly distributed. So if your application generates keys like 'foo001', 'foo002',... you'll get lots of conflicts. Same for consecutive integers in IOBTree. Tempted to

Re: [ZODB-Dev] Re: More exciting ZODB errors ;-)

2006-06-26 Thread Florent Guillaume
On 26 Jun 2006, at 15:12, Chris Withers wrote: Florent Guillaume wrote: This patch didn't seem to cure our Zope 2.8 afflicted with the assert end is not None problem. Florent, Have you actually seen any problems from these errors? I still see them occasionally, but they never seem to have

Re: [ZODB-Dev] Re: What makes the ZODB slow?

2006-06-26 Thread Chris Withers
Andreas Jung wrote: BTrees perform best when keys' prefixes are randomly distributed. So if your application generates keys like 'foo001', 'foo002',... you'll get lots of conflicts. Same for consecutive integers in IOBTree. Tempted to call bullshit on this, since there's code in the catalog

Re: [ZODB-Dev] Re: getting the object ID (_p_oid attribute)

2006-06-26 Thread Gary Poster
On Jun 26, 2006, at 3:16 PM, Florent Guillaume wrote: On 26 Jun 2006, at 21:11, Robert Gravina wrote: On 2006/06/27, at 3:49, Benji York wrote: Robert Gravina wrote: I just tried loading a persisted object interactively and noticed that although the _p_oid doesn't print out as anything

[ZODB-Dev] Re: getting the object ID (_p_oid attribute)

2006-06-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Gravina wrote: On 2006/06/27, at 3:49, Benji York wrote: Robert Gravina wrote: I just tried loading a persisted object interactively and noticed that although the _p_oid doesn't print out as anything (and hence I always thought it

[ZODB-Dev] Re: More exciting ZODB errors ;-)

2006-06-26 Thread Dieter Maurer
Hallo Florent, Florent Guillaume wrote at 2006-6-26 00:53 +0200: Dieter Maurer wrote: Chris Withers wrote at 2005-12-14 16:23 +: ... File lib/python/ZODB/Connection.py, line 788, in _setstate_noncurrent assert end is not None AssertionError This means that the latest

Re: [ZODB-Dev] Re: getting the object ID (_p_oid attribute)

2006-06-26 Thread Robert Gravina
def __eq__(self, other): if isinstance(other, name of my class): if hasattr(other,_p_oid) and other._p_oid != None and (other._p_oid == self._p_oid): return True else: return False and now can compare objects for equality

Re: [ZODB-Dev] What makes the ZODB slow?

2006-06-26 Thread Tim Peters
[Dieter Maurer] The newest pickle formats can also handle the class references is bit more efficiently -- at least when a single transaction modifies many objects of the same class. [Chris Withers] I know ZC was involved in the work to introduce these new pickle formats, but are they actually

Re: [ZODB-Dev] What makes the ZODB slow?

2006-06-26 Thread Sidnei da Silva
On Mon, Jun 26, 2006 at 05:28:51PM -0400, Tim Peters wrote: | AFAIK, nobody anywhere has used this yet, outside of Python's test | suite. It was intended to be a simple, cheap approach to cutting | pickle bloat for apps motivated enough to set up the registry. You'll | note that half the