[ZODB-Dev] Excellent overview of ODBMS and my take on ZODB

Steve Alexander steve@cat-box.net
Tue, 26 Feb 2002 23:05:12 +0000


Patrick K. O'Brien wrote:
 >
> I'm less concerned about the query language than I am about automatically
> maintaining useful indexes. But that may just be a matter of priorities.
> Once I solve the indexing problem I'm sure my priorities will shift. ;-)

You might want to take a look at the Rack and Specialist patterns behind 
  ZPatterns.

As far as implementation goes, if you're using Python 2.2, look at 
hooking into getattribute. That is, if you want to transparently update 
indexes when object attributes change.

You might also want to look at TransactionAgents, for hooking into the 
ZODB Transactions machinery and keeping a list of indexing actions to be 
executed at the end of a transaction.


> Hmm. I've been following the discussion and looking at the souce code as you
> guys have been checking it in, and it sure looks ... Zopeful ... to me.
> Maybe I just don't get it. But then again, shouldn't I be able to understand
> it if it to be useful outside of Zope? It sure feels like I have to squint
> at the code to be able to see things I could use. They don't exactly jump
> out at me the way code in regular python modules do. Object-Hub and the like
> seem like they are solving Zope problems, which are not my problems.


The ObjectHub, as checked into Zope3, is basically a means of 
associating uniquely generated location-independent integer identifiers 
with objects.

There's no particular dependency on Zope. There is a dependency on 
Interfaces.

--
Steve Alexander