[ZODB-Dev] BTrees questions

Jim Fulton jim@zope.com
Tue, 18 Dec 2001 11:31:13 -0500


Ng Pheng Siong wrote:
> 
> On Mon, Dec 17, 2001 at 06:14:34PM -0500, Jim Fulton wrote:
> > Buckets are best for small amounts of data or when you want to
> > force data into one data structure or database record.
> 
> IIRC from reading the source a while ago, buckets allow duplicate keys,

No, they don't.

> but
> Btrees don't.
> 
> Is this a design decision? If yes, may I ask why?
> 
> Sleepycat's DB also allows duplicate keys, but again I think the Python
> interfaces to it don't.

Yes it (for some definition of it) does, although you have to use the 
low-level interface.

Jim

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org