inbetween cPickle and MySQL

Thomas Weholt 2002 at weholt.org
Wed May 29 07:08:24 EDT 2002


Look at shelve in the standard distro. docs.

Thomas

<m2 at plusseven.com> wrote in message
news:mailman.1022665786.12266.python-list at python.org...
> 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