durusmail: durus-users: Re: Anybody willing to try BerkeleyDB Storage?
Anybody willing to try BerkeleyDB Storage?
2006-03-16
2006-03-16
Re: Anybody willing to try BerkeleyDB Storage?
2006-03-19
2006-03-20
2006-03-20
2006-03-20
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
2006-03-21
Re: Anybody willing to try BerkeleyDB Storage?
Jesus Cea
2006-03-21
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Sounds like your BerkleyDB Storage is a solution to that particular problem
> and quite possibly the others.

Yes, your RAM usage will not depend of the object count. I use about 16
MBytes of RAM as BerkeleyDB cache, but that amount is configurable and
independent of the data size.

The main problem with my backend is that it does not reclaim garbage
cycles. You must break any cycle by hand if you don't want to leak
objects. I've read a lot of garbage collection literature in the last
three months, but I haven't found yet an algorithm "nice" enough to
implement.

And since cycles are an implementation detail and python, until
recently, didn't reclaim them, I rather prefer a half-backed solution
now than a perfect solution, perhaps, never :).

> As soon as I knock a few more things off my plate I'll redo the infamous
> stock quotation database 'test'. Can't wait!

Me too. I'm very interested in the feedback.

> Question for Jesus - have you any thoughts or experience with using other
> backends for Storage? Curious what the work effort and plusses/minuses would
> be for using something like Postgres.

I only used the standard DURUS backend, and some "internal" backends,
self-made. I tend to avoid SQL like pest, BTW :-p

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea@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.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRB/cXZlgi5GaxT1NAQJJGQP/aUehKr+43Jua4H7nHnjVUBj0+VuFlVIf
osUNZBQTiHYSlsDHjSSw7ckRCBiEU9b8iY/izizcMOxfWWeD9uX5Yu4oSvydMCGs
WPVifuJPkc0DhG2dNGvg41YZgLp3vgWsnKLJ1NMbg6mu/MYEHehG36iuTrAjjDAz
TTDvyhTw/bU=
=lNeL
-----END PGP SIGNATURE-----
reply