Database Systems · Recap and Background
Legacy Hierarchical and Network Database Models
Overview
The relational model has dominated database systems for the past 30 years, but it was preceded by two legacy models: the hierarchical and the network database models.
These arose on IBM and Burroughs machines in the 1960s–70s, are no longer supported by any service provider, yet remain in use because companies stored large amounts of data in them.
Understanding them explains why migration tools exist and why the relational model is the present focus.
Key concepts
- Relational database model: the most dominant database system and database modeling used for the past 30 years.
- Legacy systems / legacy database models: "legacy" means historical, i.e. very old. The database models used before the relational model, on IBM and Burroughs machines, are called legacy models.
- The two legacy database models: the hierarchical database model and the network database model.
- Vendor situation in the 1960s–70s: IBM had the machines and the hardware, with no big competitors. Burroughs was the other company.
IBM invented and wrote software for IBM machines; Burroughs had the hardware, and someone had to take the IBM code and modify it so it would run on Burroughs machines. In effect, there were only these two machines. - Databases initially on IBM machines: databases were also initially used on IBM machines and were developed by IBM itself; these were called legacy machines / legacy systems.
- Why they are called legacy today: no service providers now provide software for this database modeling.
- Why companies still use them: companies in the 1960s and 1970s had already stored a lot of data in these models, so they continue using them; automated tools are now being developed to move that database model into the relational model.
- Data warehousing vs databases: in data warehousing there is huge data; in databases there is generally less data. Data collected since the 1960s is very huge, so people nowadays use data mining algorithms and data warehousing.
- Present focus: at present everything is the relational database; the syllabus contains the relational database, and interview or database-company questions are mainly about the relational database only.
How it works
- In the 1960s–70s, IBM held the machines and hardware with no big competitors; Burroughs was the other vendor, and IBM code had to be modified to run on Burroughs machines.
- Databases were initially used on IBM machines and developed by IBM itself — the legacy systems.
- Before the relational database on IBM and Burroughs machines, the hierarchical and network database models were used and were also popular.
- No service provider now supplies software for this database modeling, so the models are called legacy.
- Companies still use them because large amounts of data were already stored in the 1960s and 70s; automated tools are being developed to migrate them to the relational model.
- Because the data is very huge, data mining algorithms and data warehousing are used today.
- Order of study: the ER model has already been seen; next is the relational model. After designing the data model in the ER model, it is converted to the relational model — there are various ways to do this conversion.
After the relational model comes physical implementation: how the relational model is stored on storage devices.
Comparison
| Point of comparison | Data warehouse | Database |
|---|---|---|
| Amount of data | Huge data | Generally less data |
| Context | Used because data collected since the 1960s is very huge | Normal database usage |
| Legacy model | Present status |
|---|---|
| Hierarchical database | Legacy; no service providers now provide software for this database modeling |
| Network database | Legacy; no service providers now provide software for this database modeling |
| Relational database | Dominant model for the past 30 years; the focus of the syllabus |
Revision summary
- Relational database has been the most dominant database model for the past 30 years.
- "Legacy" means historical / very old.
- The two legacy database models are hierarchical and network.
- These models are legacy because no service provider now supplies software for them.
- Companies still use them because large amounts of data were already stored in the 1960s and 70s; automated tools are being developed to migrate them to the relational model.
- Data warehousing involves huge data; databases generally involve less data.
- At present everything is relational database; the syllabus and interviews focus mainly on the relational database.
- Order of study: ER model → relational model → conversion of ER model to relational model → physical implementation (storing the relational model on storage devices).
Previous-year exam insights
- In a hierarchical model the data is a tree (forest) of record types: each child record has exactly one parent, so only one-to-many (1:N) relationships can be represented directly; a many-to-many relationship must be simulated by introducing redundant records / virtual records.
Access is navigational — the root can be reached by an index or hashing function, but every other record is located only by following parent-to-child pointers from the root.
(asked: UGC NET 2018 (hashing used to locate the root in a hierarchical database)) - In a network model the data is a set of record types connected by owner–member sets (CODASYL/DBTG).
Because a member record can have more than one owner, the network schema permits many-to-many relationships; access is still navigational through pointers.
Asked inUGC NET 2013 - Data independence: hierarchical and network models are navigational and give no (or very poor) physical and logical data independence, because programs embed pointers and physical structure; the relational model provides both logical and physical data independence.
Therefore any statement claiming the relational model lacks logical or physical data independence is false.
Asked inUGC NET 2007UGC NET 2006 - Model timeline/terminology: hierarchical model — IBM IMS (mid-1960s); network model — CODASYL/DBTG proposal (late 1960s); relational model — E. F. Codd, 1970. 'Relation' means table, 'tuple' means row, 'attribute' means column.
- Structural contrast to memorise: hierarchical and network models are pointer-based and navigational (the program must know the access path), whereas the relational model stores data in tables with no pointers and is queried declaratively, which is why it replaced them.
- Legacy models are still studied because huge volumes of data created in the 1960s–70s remain in them, hence migration tools, data extraction, data warehousing and data mining are used to move/analyse that data in relational systems.
Hierarchical vs Network Structure
Drawing the diagram…
Contrasts the hierarchical tree, where each child has exactly one parent, with the network owner-member sets, where a member can have more than one owner.