What is a database index?
A database index is a sorted list the database keeps for one or more columns, so it can find matching rows without reading the whole table. It speeds up reading and adds a little work to each save.
An example
It works like the index at the back of a book. To find “caching”, you look it up and jump to page 212 instead of reading every page.
Where you’ll meet it
- Why do database queries get slow, and how does an index help? · Growing your product