Mysql plus indexing is slower than no indexing. Why?

this table has more than 400,000 data that is not indexed

uname datetime

The same is true of

and composite indexes.
I don"t know how to ask all of you for beginners

Php
Mar.04,2021

for columns with a lot of duplicate data, it is not suitable to simply build an index, because the amount of data after Filter is still very large, and the index is walking through the table first, so it is very slow

.
Menu