embedded db in python app?

drs drs at ecp.cc
Sat Jun 21 13:31:02 EDT 2003


"Alessio Pace" <puccio_13 at yahoo.it> wrote in message
news:qRVIa.34337$Fr5.730650 at tornado.fastwebnet.it...
> Hi, I wrote a python application which needs to persistently store 2 *big*
> hash maps at the end of its execution and retrieve them when it starts
> again. Up to now I just used pickle to serialize 2 objects that
> "encapsulate" those hash maps (and nothing else). I wonder if using an
> embedded db (but which one??) to store those two hash maps would be faster
> both in storing and in retrieval.


if pickle as a concept is working, but it is just too slow, try cPickle
before changing the strategy too much.  If, however, that is not a good
strategy, then look in to ZODB.  Similar in concept to bsddb (I guess) but
way cooler for python apps.

http://www.amk.ca/zodb/

-d






More information about the Python-list mailing list