[pybsddb] How to get Btree len inside a transaction?

Matt Chaput matt at whoosh.ca
Wed Mar 12 05:43:15 CET 2014


> How many keys do you think you have?. Berkeley DB doesn't have a
> counter, so it will iterate over ALL the database. If it is big, it
> can take a long time.

OK, thanks! It's actually not a big deal.

> Anyway, what are you looking for is this:
> 
> http://www.jcea.es/programacion/pybsddb_doc/db.html#stat

Oh, nice! I've apparently been looking at a (very?) old version of the docs where stat() didn't take a txn parameter.

Cheers,

Matt



More information about the pybsddb mailing list