medium10 pts · first answer countsdatabasesindexes
Index on a true/false column
A users table has 10 million rows, and is_active is true for 95% of them. Will an index on is_active speed up `WHERE is_active = true`?
Discussion 0
Join free to post in the discussion.
Related questions
- Building SQL from user inputBackend Developer
- What atomicity guaranteesBackend Developer
- WHERE column = NULL finds nothingBackend Developer
- COUNT(*) versus COUNT(column)Backend Developer
- Column type for pricesBackend Developer
- Storing order times for two countriesBackend Developer
- Students and courses table designBackend Developer
- What a foreign key doesBackend Developer