examerioLogin
← Backend PythonQuestion 30 of 49

What is a composite index and when would you use one instead of single-column indexes?

📘 Explanation

A composite index covers multiple columns and is useful when queries filter on that same combination, following the left-prefix rule where column order matters. The other options describe unrelated ideas like storing full row data, merging separate indexes automatically, or spanning multiple tables via foreign keys.

📖 Learn: Indexes & query performance

Related questions

← PreviousNo login needed