Although I understand that it is very convenient to have an index in a unique column - in order to easily and efficiently check for a collision of values, I think that the programmer should be asked whether the unique column of the field should have an index or not, in terms of speed optimization by size.
As far as I understand, MySQL automatically indexes a table column that is listed as unique. This is true?
Is there some reason MySQL doesn't seem to be able to have unique columns without indexes? Yes, each insert / update of values โโwill be performed without the O (number_of_rows) operation, but, as I said, does the programmer need to tax the decision?
Just curious!
optimization database mysql
amn
source share