AI engineering glossary · SQL databases

What is composite index?

Composite index (also called Multicolumn index): An index over several columns, sorted by the first column, then the second within it, and so on. It helps queries that filter on a leftmost prefix of its columns, so column order matters.

Level: intermediateTopic: SQL databases

Composite index: an example

An index on (city, signup_date) serves WHERE city = 'Pune' AND signup_date > ..., but not WHERE signup_date > ... alone.

Related terms

More SQL databases terms

Where you learn it

Composite index is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.