Why database why not simply file- database?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
rado
-


Joined: 14 Apr 2004
Posts: 67

PostPosted: Thu Aug 19, 2004 8:26 am    Post subject: Why database why not simply file- database? Reply with quote

A PHP beginer question?
Why there is so much noise on databases? What is the point? Since soon or later everything is recorded in files, why not directly bypass the database like MySQL and record the information on file. File-database.
Why not file-database? It is simple, faster and more pro-like probably?

Any help to solve that mystery?
Back to top View user's profile Send private message
mrblue
-


Joined: 24 Feb 2004
Posts: 27

PostPosted: Thu Aug 19, 2004 4:01 pm    Post subject: Reply with quote

well Mysql is faster than using a file-database and its more sucure! also its smaller all info that goes into a mysql database is compressed.
_________________
WolframHartLA - Angel Forums and general sci-fi
Back to top View user's profile Send private message Visit poster's website
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Thu Aug 19, 2004 4:09 pm    Post subject: Re: Why database why not simply file- database? Reply with quote

rado,

With a simple data file, you cannot have multiple accesses to the database without running into synchronization and consistency issues. Imagine that two programs (or instances of the script) are writing to the same file, it may be corrupted. That's why file based databases disappeared in the late 80s (DBase and its clones worked that way, but they were only able to handle a single user accessing the database at the same time => not good for today's uses.)
_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
rado
-


Joined: 14 Apr 2004
Posts: 67

PostPosted: Thu Aug 19, 2004 6:57 pm    Post subject: Reply with quote

Ok - multiple accesses is the thing. And more speed.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group