D
D
Dan Ryehood2014-08-26 08:08:06
MySQL
Dan Ryehood, 2014-08-26 08:08:06

Multiple indexes for one field - why is this possible?

Is there any sense in this, and if not, why is this possible?
mysql.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
1
1Michael1, 2014-08-26
@1Michael1

in this case, it is useless and only aggravates the bet (recalculation of identical indices)
if there was first one index on nicename, and then a composite nicename+id index - this might be necessary (depending on needs)
it is also worth noting, that nicename and nicename_2 indexes are different (one is unique, the other is not unique), you need to choose what is still required,
but the nicename_2, nicename_3, nicename_4, nicename_5 indexes are absolutely the same and this is redundant

A
Andrey Burov, 2014-08-26
@BuriK666

They just didn't make foolproof.

D
Dan Ryehood, 2014-08-26
@wbird

In short, this needs to be fixed by the developers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question