473,473 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DatBases and Pickle Module

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

Feb 22 '06 #1
2 1183
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
Feb 22 '06 #2
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

Feb 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike P. | last post by:
Hi all, I'm working on a simulation (can be considered a game) in Python where I want to be able to dump the simulation state to a file and be able to load it up later. I have used the standard...
10
by: crystalattice | last post by:
I'm creating an RPG for experience and practice. I've finished a character creation module and I'm trying to figure out how to get the file I/O to work. I've read through the python newsgroup...
3
by: Jeffrey Barish | last post by:
I have a class derived from string that is used in a pickle. In the new version of my program, I moved the module containing the definition of the class. Now the unpickle fails because it doesn't...
3
by: fizilla | last post by:
Hello all! I have the following weird problem and since I am new to Python I somehow cannot figure out an elegant solution. The problem reduces to the following question: How to pickle a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.