On 10/3/06, David Bingerwrote: > > On Oct 2, 2006, at 9:02 PM, Mike Orr wrote: > > > At what point is it better to use a BTree rather than a PersistentDict > > of Persistent values? My goal is to keep only a few values in memory > > at a time (for display) while still being able to iterate all values > > efficiently (for an advanced search). > > > > I assume a BTree with Persistent values is overkill since the BTree > > value would be only a stub. > > Performance will usually be best when the number of loads is > kept as low as possible. A BTree of non-persistent (small) values > probably has an advantage in this area since loading a > single BTree node would give your connection access to > a set of (16 by default) values. I assume that your application is > not writing in the BTree. How big is small? Each value might be 5 KB. There are 6100 values total. It's an import once, read often database. -- Mike Orr