inbetween cPickle and MySQL

m2 at plusseven.com m2 at plusseven.com
Wed May 29 05:46:34 EDT 2002


I need a simple way to store lots of simple objects (compsed of
strings only). Right now I'm using cPickle, which means I have to read
in the intire file to find all object.attribute == X. 

Since the file will get pretty this will consume a lot of memory. One
option is to put the objects in a SQL DB (Don't mention ZODB, I don't
like it.) but that is so much trouble. Speed is not an issue.

>From my perl days I remeber some sort of "hash on a file"-thingy, that
struck a middle ground between pickle and a full blow database. Is
there anything like that in Python? 



-- 
Alex Polite





More information about the Python-list mailing list