System Design Fundamentals

0% completed

Types of Indexes

Database indexes are designed to improve the speed and efficiency of data retrieval operations. They function by maintaining a separate structure that points to the rows in a table, allowing the database to look up data more quickly without scanning the entire table.

There are various types of database indexes, each with its unique characteristics and use cases. Understanding these different index types is crucial for optimizing the performance of database systems and ensuring efficient data retrieval.

In this section, we will explore several common types of database indexes.

.....

.....

.....

Like the course? Get enrolled and start learning!
The lone Ranger

The lone Ranger

· 2 years ago

The content for indexes is totally incomplete. Contains no examples. and it should include Btree indexes as well. How can we prepare comletely without all content and information?? Please improve.

Alexandre Gobeaux

Alexandre Gobeaux

· a year ago

Additionally, non-clustered indexes on a clustered table use the clustered key as a pointer to locate data (instead of a direct physical pointer), which adds a bit of size to those indexes.

Why don't we have a pointer? Is it because the pointer can change when adding/removing rows and we don't want to update the non-clustered index?

However, storing the clustered key means when we search it, it will not be O(1), right? O(1) could be provided by a having pointer (talking only about the complexity of finding the row in the table once we have found the index value in the non-clustered index table).

Please explain this a bit more, it would be great having an example or even images for this specific non-clustered index on a clustered table case.

Show 1 reply