DatBases and Pickle Module

Larry Bates larry.bates at websafe.com
Wed Feb 22 17:59:50 EST 2006


Math wrote:
> Hello,
> 
> I wonder if someone can help me out.
> My native is Dutch, sorry for this....
> 
> But I am writing this program, a program which uses Relational DataBase
> for saving all kinds of information in records.
> Now I saw another application which stores all kind of identical data in
> plain files, but without any kind of DBMS.
> I wonder how they did this?
> It also seems alot faster then when working with DBMS.
> Can I achieve the same in Python with say..the pickle module.
> For instance a dictionary or something else?
> 
> Many thanks to you all
> Math

Using a database is good when you want to access data based on
indexes or if you wish to have 1-n relationships between tables.
Plain files don't handle this very well.  If all you want to do
is store raw data and get it back, look at pickle and shelve
modules.  They are very fast.

-Larry Bates




More information about the Python-list mailing list