DatBases and Pickle Module

M

Math

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
 
L

Larry Bates

Math said:
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
 
L

Larry Bates

Math said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,107
Latest member
AmeliaAmad

Latest Threads

Top