2. Types of Data Models

Types of Data Models

1. Hierarchical Data Model

Definition:

Organizes data in a tree structure with a parent–child (one-to-many) relationship.

Advantages

·         Simple and fast for hierarchical data

·         Provides high performance

·         Easy to understand structure

Disadvantages

·         Cannot represent many-to-many relationships

·         Rigid structure; difficult to modify

·         Requires knowledge of access paths

 

2. Network Data Model

Definition:

Uses a graph structure allowing many-to-many relationships.

Advantages

·         Supports complex relationships

·         Faster access due to direct pointers

·         More flexible than hierarchical model

Disadvantages

·         Very complex to design

·         Difficult for users to navigate

·         Hard to modify once implemented

 

3. Relational Data Model

Definition:

Organizes data in tables (relations) using rows and columns.

Advantages

·         Easy to use and understand

·         Supports SQL (powerful query language)

·         Strong data integrity and flexibility

Disadvantages

·         Slower than hierarchical/network models for very large datasets

·         Requires powerful hardware for huge databases

·         Joins can reduce performance

 

4. Object-Oriented Data Model

Definition:

Stores data as objects similar to object-oriented programming.

Advantages

·         Handles complex data (images, videos, objects)

·         Reusability through inheritance

·         Good for multimedia and engineering applications

Disadvantages

·         More complex to design

·         Not widely used as relational models

·         Difficult to integrate with existing relational databases

 

5. Entity–Relationship (ER) Model

Definition:

Uses ER diagrams with entities, attributes, and relationships to design databases.

Advantages

·         Excellent for database design and visualization

·         Easy to understand

·         Helps identify relationships and constraints

Disadvantages

·         Not a physical implementation model

·         Limited in handling complex constraints

·         Needs conversion to relational model before use

 

6. Object-Relational Data Model

Definition:

Combines relational and object-oriented features.

Advantages

·         Supports complex data types and relationships

·         More flexible than pure relational model

·         Good for modern applications

Disadvantages

·         Higher complexity

·         Requires advanced skill to design and manage

·         May reduce performance if not optimized

 

📌 Short Table

Data Model

Structure

Advantage

Disadvantage

Hierarchical

Tree

Simple, fast

Rigid, no M:N

Network

Graph

Supports M:N

Complex

Relational

Tables

Easy, powerful

Slower with huge data

Object-Oriented

Objects

Handles complex data

Hard to implement

ER Model

Diagram

Great for design

Not for implementation

Object-Relational

Hybrid

Flexible, supports complex types

Complex, costly

Concept of Key in DBMS