![]() |
Indexing is a technique in DBMS that is used to optimize the performance of a database by reducing the number of disk access required. An index is a type of data structure. With the help of an index, we can locate and access data in database tables faster. The dense index and Sparse index are two different approaches to organizing and accessing data in the data structure. These are commonly used in databases and information retrieval systems. ![]() Index structure Different Types of Indexing MethodsIndexing methods in a database management system (DBMS) can be classified as dense or sparse indexing methods, depending on the number of index entries in the database. Let’s take a look at the differences between the two types of indexing methods: ![]() Types of index Dense indexing and Sparse indexing are types of primary indexing. Now let’s take an overview of these terms: Dense IndexIt contains an index record for every search key value in the file. This will result in making searching faster. The total number of records in the index table and main table are the same. It will result in the requirement for more space to store the index of records itself. ![]() Dense indexing Advantages
Disadvantages
Sparse IndexSparse index contains an index entry only for some records. In the place of pointing to all the records in the main table index points records in a specific gap. This indexing helps you to overcome the issues of dense indexing in DBMS. ![]() Sparse indexing Advantages
Disadvantages
Difference Between Dense Index and Sparse Index
ConclusionIn conclusion, we can say that the choice between dense and sparse indexing depends on data structure requirements. Dense indexing have advantages of direct access. Sparse indexing have advantages of memory efficiency and less overheads for insertions and deletions. |
Reffered: https://www.geeksforgeeks.org
DBMS |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |