Pas encore inscrit ? Creez un Overblog!

Créer mon blog

What are the differences between Flat files and databases?

Data storage is an intrinsic part of the internet but how is that data stored? What is a flat file? How does a flat file compare to a database? Indeed, what options are there when it comes to data storage and what are the benefits of the options. This article attempts to clear up some of the mud in the water and explain what the different types are.

Data storage types

Flat File
These are the simplest form of data storage.
The main use for a flat file is to move data between different data storage systems.
Usually, these are created by an export function on an application although they can be hand created.
The most common form of flat file is a CSV or Comma Separated Variable file. Spreadsheet
A spreadsheet is effectively a combination of a bunch of flat files and mathematical functions. It's a fairly simple form of data storage but also one that can be used fairly effectively by most people.
The in built mathematical functions make this a popular choice for many people. Database
A database is effectively a bunch of flat files set-up in a system that allows rapid searching, cross referencing and manipulation of data.
Databases can be very complex systems but also flexible.

Pros and cons

Flat File
Pros
Simple data storage.
Transportable between systems.
Can be read by a simple text editing package. Cons
Hard to search data.
No facility for cross searching of data.
No ability to apply mathematical formulae. Spreadsheet Pros
Simple data storage.
Effective where mathematical formulae are needed.
Easy to use, no real programming ability to get a lot out of a database.
Excellent ability to do statistical analysis and graphs. Cons
Poor cross tabulation.
Hard to avoid data duplication.
No real facility for search queries. Database
Pros
Very flexible and efficient way of storing data.
Excellent ability to do queries of the data.
If designed properly has minimal data duplication.
Saves a lot of time, more than offsetting any development costs. Cons
Requires expert knowledge to set-up and configure.
Can lose efficiency if it's poorly designed.
Can be expensive to maintain.
Final word
Overall databases are simply the best way to store data.
They are very efficient and flexible in the way they store data.
Flat files are only any good as a source that is then imported into a Spreadsheet or a Database.
Spreadsheets are only really useful when statistical graphics are required.
The best solution is to store all the data in a database and then do spreadsheet statistics off exports from queries on the database.

Articles de la même catégorie Computers

Netgear WNAP210 Prosafe Wireless N Access Point: Review and rate

Netgear WNAP210 Prosafe Wireless N Access Point: Review and rate

Wireless routers are a commodity for all those with Internet access, be it for home or business use. Wireless routers such as the Netgear WNAP210 Prosafe Wireless N Access Point allow all those within range to surf the web and check their emails without the need for obtrusive cables and wires. How does this wireless access stand-up when compared to its many rivals?
What to do when your computer keeps freezing

What to do when your computer keeps freezing

If you find that your PC freezes when you are using it, then it is time for a virtual spring clean. In this article, we will show you how to diagnose problems and what to look for when your computer keeps crashing. These basic steps will improve your productivity, save frustration and won't even cost you a penny. Read on to learn how to solve your computer problems.
How to check broadband speed

How to check broadband speed

Ever wondered if your provider is indeed delivering the speeds it promised? Look no further as this guide will explain how to check your download, upload and ping speeds. Your broadband connection will forever be available to you, whenever you are connected to the internet.
How do I secure my wireless network?

How do I secure my wireless network?

Wireless networks are extremely convenient, but they are also vulnerable to hackers. This problem is made worse by the fact that many Wi-Fi networks have very little or no security. Below is a short guide to some of the security settings available for your network and how best to implement them.