examerioLogin
← Backend PythonQuestion 39 of 49

Why might a query using LOWER(email) not use an index on email?

πŸ“˜ Explanation

Using LOWER(email) applies a function to the column, so a plain index on email doesn't match; you need a functional index on LOWER(email) instead. The other explanations about reserved keywords, forced case-insensitivity, or optimizer bias against string functions are not accurate.

πŸ“– Learn: Indexes & query performance

Related questions

← PreviousNo login needed