Databases & SQL vocabulary · Indexes and Query Performance

Index

Meaning in databases & SQL, with examples

/ˈɪndɛks/nounCore term

In databases & SQL, index means: An extra data structure built on one or more columns that lets the database find rows quickly without reading the whole table, like the index at the back of a book.

In Turkish: indeks, dizin

How it is used

The first thing people check when a query is slow. You create, add, drop and rebuild indexes; a query 'uses' or 'hits' an index. Indexes speed up reads but slow down writes and take disk space, so adding one is always a trade-off. The default type in most databases is a B-tree.

Example sentences

  1. After we added an index on created_at, the query went from six seconds to forty milliseconds.

  2. Too many indexes on this table are slowing down our inserts.

Common collocations

  • create an index
  • add an index
  • drop an index
  • use an index
  • composite index

This word in other fields

The same English word can have a different meaning in another field:

More terms: Indexes and Query Performance

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: