how good is shelve?

Skip Montanaro skip at pobox.com
Tue Nov 12 06:42:46 EST 2002


    Peter> at the moment I'm writing a small web application with
    Peter> python. Because I'm lazy I does not store the data for it in a
    Peter> mySQL-Database or something similar. Instead I use shelve to
    Peter> store the data. Now my question is: will I get problems if my web
    Peter> application becomes famous (I don't think it will, but who
    Peter> knows?) and the data to store gets big?

If your application becomes famous you'll probably have difficulties with
file corruption before it gets big.  Make sure you are locking the file
properly.  How to do that is platform-dependent.

-- 
Skip Montanaro - skip at pobox.com
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list