0% found this document useful (0 votes)
44 views

Data Storage Mechanism

Uploaded by

Sabahat Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Data Storage Mechanism

Uploaded by

Sabahat Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Data Storage Mechanism

 Data Model Basics

 Data model is the basic architectural unit of the


databases which determines the structure of
the database and determines the way in which
data will be stored or organized. It also defines
the connection, processing and storage of data
in a system. It organize the data and determine
how the data elements relate to each other.
The data model is the map or the design of the
database and it is difficult to change when data
is inserted.
Data Storage Mechanism
 Flat File Basics

 Simple ordinary file stored in host computer

 Complete file has to be read into memory to


perform operations (R/W)
Data Storage Mechanism
 Flat File Basics

 Usually refer to single record per line

 Usually Plan text (Word or notepad)


or ASCII file
Data Storage Mechanism
 How Flat File Works

 Data is store in columns and rows

 Each row is separated by comma or tabs


Data Storage Mechanism
 How Flat File Works

 Potential for duplicates

 Harder to Update

 Prone to Error

 Poor at limiting access


Data Storage Mechanism
Data Storage Mechanism
 Hierarchal Database Basics

 One of the two main Data Model proposed by


IBM’s IMS System

 Data is organized as Tree-Like Structure


Data Storage Mechanism
 Hierarchal Database Basics

 The Data is stored as records (combination of row


and column)

 Fix Length Record

 Records are connected through


links
Data Storage Mechanism
 Hierarchal Database Basics

 Only One Root Node

 Each child with one parent

 Parent can have multiple child's


Data Storage Mechanism
Data Storage Mechanism
 How Hierarchal Database Works

 Data in tree is retrieved using Traversal

 One-to-Many relationship exists between Root


and Child Node
Data Storage Mechanism
 How Hierarchal Database Works

 Each parent record store the address of its all child


record

 Child Record will act as Parent Record for next


level
Data Storage Mechanism
Data Storage Mechanism
Data Storage Mechanism
 Network Database Basics

 It allow one child can have multiple parents

 Each Parent can have multiple Childs

 Representing Record as Graph


Data Storage Mechanism
 Network Database Basics

 The model can be seen as an upside down tree

 Fix Length Record


Data Storage Mechanism
 How Network Database Works

 There is no concept of Parent-child relationship

 Each record will store address the all referencing


records
Data Storage Mechanism
 How Network Database Works

 Virtually any record can be linked to any record –


No Hieracichy

 Many-to-Many relationship exists between Root


and Child Node
Data Storage Mechanism

You might also like