Re: Re: [PyCS-devel] Re: Maybe problems with Metakit 2.4.9.3
Jeremy Bowers <[email protected]> Wed, 07 Jul 2004 21:36:27 +0000
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
I've poked around a bit more and another possibility is ZODB. It can be used either as a multi-process database or a multi-threaded single file. I don't know the internals of PyCS, but it would require a couple of changes in PyDS. The biggest change is that ZODB stores Python objects, not just class-free database rows. Overall, I think this would be a good change anyhow. It looks to me like you'd need to replace current Metakit functionality with an object that would probably sub-class a BTree (http://zope.org/Wikis/ZODB/FrontPage/guide/node6.html#SECTION000630000000000000000) and also index by other interesting attributes, probably with a simple dict (at least for PyDS, PyCS may need other BTrees). http://zope.org/Wikis/ZODB/FrontPage/guide/index.html http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html