[pybsddb] Len() operation taking a long time

Jesus Cea jcea at argo.es
Mon Nov 17 15:55:21 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gregg Lind wrote:
> That is (sadly) consistent with my experience as well.  If you look back
> at previous messages, the bsddb does indeed have to do a full scan to
> get the its length.  As a strategy, I keep track of the key count in the
> Python layer.  It's unpleasant and error-prone.

Berkeley DB team position is "a count creates a hotspot in
multithreading applications". That is true, but not all applications are
so demanding and keeping a count by hand is slower and more error-prone.

I would suggest you to ask for that (configurable) feature to Oracle
guys. Use the Berkeley DB forum. They are very responsible.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSSGF1plgi5GaxT1NAQL6QQP/VKzfuOudsDW1bJUUkwFEEbXEzwgTmVbu
cDxXZQxliug9s2YSE3yLumRHd+uFYqFWgbydM9C7GD3BfKBslIc4/t/fAGEaZp88
Wj3MJqrzhx5iEQRJiFgYa0dO/fvQt/sp24Z6oKPhjbQJvKDII91bjW/fp9W5nD+U
IWQ92pUFrFg=
=xucf
-----END PGP SIGNATURE-----



More information about the pybsddb mailing list