Skip to content
RED SAGSkills
easy5 pts · first answer countsindexingquery-tuning

Index on a yes/no column

A 50 lakh row orders table has an is_active column where about half the rows are true and half are false. A developer adds a B-tree index on is_active alone. Why does the planner usually ignore it for WHERE is_active = true?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions