Guide Databases & data

Database indexes explained

What an index is, when it speeds a query, and when another index only slows writes.

An index is extra data that makes some lookups cheap

Without an index, a database may scan a whole table. An index is a structure (commonly a B-tree) that locates rows by a column or set of columns faster. It must be updated on writes.

Index what you filter and join

Look at slow queries: WHERE email = and JOIN … ON customer_id are classic. Unique constraints are indexes with a bonus integrity check. Primary keys are indexes.

Do not index everything

Each index slows INSERT/UPDATE and uses disk. Unused indexes are ballast. Measure with EXPLAIN (or your engine’s equivalent) on realistic data sizes.

Last verified: August 2026. Technology and pricing change — always confirm current details with the vendor.

#SQL#indexes#performance

About Elysian Editorial Team

Editorial & engineering team

The Elysian Tech Leverage editorial team writes and reviews technical content on AI, automation, software, cloud and business systems. Every guide is fact-checked against primary sources and every tool and calculator is tested before publication.

AI & automationCloud architectureAPIs & integrationsDataCybersecurity fundamentals