Skip to content
Discussion options

You must be logged in to vote

A database index is a data structure that speeds up searching for records.

Without an index, the database may need to scan every row.

Example

Imagine a book.

Without an index, you read every page to find a topic.

With an index, you jump directly to the correct page.

The same idea applies to databases.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janedoe2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants