[ZODB-Dev] BTrees questions

Jim Fulton jim@zope.com
Thu, 20 Dec 2001 11:06:04 -0500


Martijn Faassen wrote:
> 
> Jim Fulton wrote:
> [snip behavior]
> > > Should this happen?
> >
> > No.  This is a bug. Dang. Would you mind submitting a
> > collector issue on this?
> 
> Sure. Done.
> 
> > > It seems to happen for buckets whenever I fill in
> > > a min larger than 1. I probably don't understand the datastructure
> > > too well but I thought I'd ask. Should I be using buckets or BTrees?
> >
> > I can't say, since I don't know what you want to do with them.
> >
> > Buckets are best for small amounts of data or when you want to
> > force data into one data structure or database record.
> 
> > If you aren't sure, use BTrees.  :)
> 
> Okay, will do. Or sets, of course. What kind of behavior do they have,
> by the way? Do they scale up to large amounts of information or are
> they more similar to buckets?

Sets are like buckets. TreeSets are like BTrees. Specifically, 
TreeSets are designed to handle large amounts of data.

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