Indexing in DBMS Enhancing Database Performance
Indexing in DBMS Enhancing Database Performance
Enhancing Database
Performance
This presentation provides a comprehensive overview of indexing in
DBMS, exploring its purpose, types, and how it contributes to faster
data retrieval.
by Himanshu Bharti
What is Indexing? Definition and Purpose
Definition Purpose
An index is a data structure that helps speed up data Indexes facilitate quick access to specific data records
retrieval operations in a database. It stores a sorted list by providing a shortcut to find data without scanning the
of values from a column, along with their corresponding entire database.
row locations.
Types of Indexing: Clustered
vs. Non-Clustered
Data is stored in a continuous, linear sequence, similar Simple, easy to implement, requires sequential access,
to a traditional tape drive. suitable for batch processing. Limited random access
capability.
Advantages and
Disadvantages of
Sequential File Organization
Advantages Disadvantages
Simplicity, easy to Slow random access,
implement, efficient for inefficient for frequent
batch processing, low updates, limited flexibility in
storage overhead. data retrieval.
Index Sequential File Organization:
Fundamentals and Structure
Fundamentals Structure
Combines sequential and indexed access methods, Consists of an index and data blocks. The index points to
providing fast access to records based on key values. data blocks, allowing for both sequential and direct
access to records.
Advantages and Disadvantages of Index
Sequential File Organization
Advantages Disadvantages
Fast retrieval, supports both sequential and random More complex than sequential file organization,
access, efficient for both batch processing and requires additional storage space for the index.
interactive transactions.
Comparison: Sequential File vs. Index Sequential
File Organization