Need someone to try some rarely used bsddb methods

Skip Montanaro skip at mojam.com
Wed Apr 21 23:08:35 EDT 1999


A few days ago I asked for input about how the various bsddb object
methods work with different storage types (btree, hash, recno).  I got
responses from several people whose findings were consistent with mine. 
The "last" and "previous" methods seemed to fail for hash databases.

It turns out they aren't supported.  A little digging around in the
Berkeley DB code demonstrated that quite clearly.  I will work on some
patches to the bsddb module that catch the mistake and return a more
meaningful error message along with the exception. I have yet to figure
out what is happening with the recno format databases.  My
recommendation is that you only use the btree format for large
databases.  (Unfortunately, anydbm.open calls bsddb.hashopen when it's
available.)

I wound up writing the section for the library reference as well.  I
believe it's in the CVS repository now.

Thanks to all who replied.

-- 
Skip Montanaro	| Mojam: "Uniting the World of Music"
http://www.mojam.com/
skip at mojam.com  | Musi-Cal: http://www.musi-cal.com/
518-372-5583




More information about the Python-list mailing list