- Why file-based storage causes problems
Separate files duplicate data, so it can become inconsistent and hard to trust.
In a file-based approach each application keeps its own separate file of data. If a school's library system and sports system each keep a copy of every student's name and address, the same data is stored in several places. This causes four classic problems:
| Problem | What it means |
|---|---|
| Data redundancy | The same data is stored more than once, wasting storage. |
| Data inconsistency | If one copy is updated but the others are not, the copies disagree. |
| Lack of data integrity | Nothing enforces that linked data stays valid or complete. |
| Lack of data security | Access is controlled per file, so it is hard to give different users different rights. |
| Program-data dependence | The file format is built into each program, so changing the data structure means rewriting the programs. |
Key idea: redundancy is the root cause — because data is duplicated, the copies can drift apart (inconsistency) and there is no single trustworthy version.
- File-based = each program has its own data file.
- Redundancy: same data stored more than once.
- Inconsistency: copies disagree after a partial update.
- Also: poor integrity, poor security, program-data dependence.