Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good guides and/or advice for indexing my objects in zodb?

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!

like image 200
Alexander Trauzzi Avatar asked Apr 21 '10 17:04

Alexander Trauzzi


1 Answers

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.

like image 79
Duncan Avatar answered Sep 21 '22 22:09

Duncan