hard20 pts · first answer countsindexingquery-tuning
Estimates wrong for a skewed column
A merchant_id column has 2 lakh distinct values with a few very large merchants. Estimates for mid-size merchants are often off by 50x. What targeted fix helps?
Discussion 0
Join free to post in the discussion.
Related questions
- When a B-tree index helpsDatabase Administrator
- Finding slow MySQL queriesDatabase Administrator
- Index on a yes/no columnDatabase Administrator
- How InnoDB stores table rowsDatabase Administrator
- What an InnoDB secondary index points toDatabase Administrator
- LIKE with a leading %Database Administrator
- What a hash index supportsDatabase Administrator
- Cost of extra indexes on insertsDatabase Administrator