views:

67

answers:

1

I'm going to be writing a general object class for use with zodb. These objects will add themselves to a btree index once they are persisted to the zodb object graph.

I've never really worked with any of this before, but would anyone have any resources and/or advice on doing this?

With zodb's power when dealing with object references and a good indexing strategy, I could end up getting the best of both database worlds.

Any other thoughts are more than welcome, thanks!

+1  A: 

Have a look at repoze.catalog:

repoze.catalog is a Python indexing and searching framework. It relies on zope.index and most of its internals are taken from zope.app.catalog. Unlike zope.app.catalog, however, it is meant to be useful outside of the larger Zope framework within arbitrary Python applications.

Duncan
I can't seem to find any comprehensive tutorials for zope.index? It's homepage is apparently the pypi page, rather than a zope one...Hmmm...
Omega