MySQL: low cardinality/selectivity columns = how to index?

前端 未结 7 1288
既然无缘
既然无缘 2020-12-04 15:31

I need to add indexes to my table (columns) and stumbled across this post:

How many database indexes is too many?

Quote: “Having said that, you can clearly

7条回答
  •  没有蜡笔的小新
    2020-12-04 16:12

    You will hardly need all 150 mln records at once, so I guess "status" will always be used in conjunction with other columns. Perhaps it'd make more sense to use a compound index like (status, fullname)

提交回复
热议问题