Databases

What is an index in a database?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

A database index is a data structure that improves the speed of operations in a table. Indexes can be created using one or more columns, providing the basis for both rapid random lookups and efficient ordering of access to records.