Introduction To Indexing in Database Management Systems Print
Introduction To Indexing in Database Management Systems Print
PRESENTATION
By:
Abishek .B
Monish Kanna.M
Ravikumar.D
Thiruneelin.V.P
Why Indexing?
This is
Indexing
For instance, in a customer database, the customer ID can act as the primary key, guaranteeing
that every customer has a unique identifier. This uniqueness simplifies searching, updating, and
managing records, as each entry can be directly referenced without ambiguity. The primary index
plays a critical role in organizing data and optimizing database operations, enabling faster lookups
and ensuring consistent data relationships across the system.
Dense and Sparse Indexes
Dense Index Sparse Index
A dense index stores an A sparse index stores only a
index entry for every record selected subset of the table's
in the database table. This records, often for specific key
allows for quick searches and values. It is more space-
efficient retrieval of data. efficient but may not be as
However, it can consume performant for all queries.
more storage space. Imagine Think of a book index with
a book index where every only a few key terms listed,
single word is listed, making making it concise but
it comprehensive but bulky. potentially limiting in its
scope.
Clustered Index
A clustered index is a special type of index that physically orders the
data in a database table based on the index key. This means that the
data rows are stored in the same order as the index values. It's like a
physical index in a book, where the pages are arranged alphabetically
based on the index entries. This structure makes data retrieval for the
indexed column very efficient, as the data is already sorted.
Secondary Indexes