@Julius Härtl
We had a report when we upgraded Mariadb that some of the deck indexes in the database were corrupt. As part of that, I looked at the indexes, and one of them is just an index on order
in the oc_deck_cards
table.
What is the purpose of this index? When do you ever want to process all cards of all decks in order of order
(rather than order
within stack_id
)?
To be any use at all, the index needs to be stack_id, order
, it seems to me. Indeed, the table should have a combined (possibly unique?) index on stack_id
and order
rather than a separate one for each column.
I suspect many of the other indexes may be the same.