Re: Dictionary or Database—Please advise

lbolla lbolla at gmail.com
Fri Feb 26 11:29:54 EST 2010


On Feb 26, 3:58 pm, Jeremy <jlcon... at gmail.com> wrote:
> I have lots of data that I currently store in dictionaries.  However,
> the memory requirements are becoming a problem.  I am considering
> using a database of some sorts instead, but I have never used them
> before.  Would a database be more memory efficient than a dictionary?
> I also need platform independence without having to install a database
> and Python interface on all the platforms I'll be using.  Is there
> something built-in to Python that will allow me to do this?
>
> Thanks,
> Jeremy

Maybe shelve would be enough for your needs?
http://docs.python.org/library/shelve.html



More information about the Python-list mailing list