MediumConceptPerformance and scaling in practice
What is a database index you would add for a search by email and date?
What a good answer covers
A composite index with the equality column first and the range column second, such as (email, created_at), matching the query's filter and sort.
PreviousHow do you use HTTP caching headers for an API?Next How do you cache expensive queries safely?