How to determine what should be the order of the fields in a composite index? For example, if the table has two fields:
`refund_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `status` smallint(6) DEFAULT '0', while the status field is with low selectivity (it can only take values of 0, 1 or 2), which of these fields should be first in the index, and which one - second?