QUESTION 13 OF 15

How do you choose column order for a composite index?

Reveal the answer and explore the explanation.

13
MediumHigh priority

How do you choose column order for a composite index?

Answer
Answer

Index over multiple columns whose ordering and query predicates affect usefulness.

Practical example

Index user ID and creation time for recent attempts per user.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As