MySQL Forums :: InnoDB :: what is the difference between index (a,b) and (b,a)


Advanced Search

Re: what is the difference between index (a,b) and (b,a)
Posted by: Bing Wu ()
Date: March 06, 2017 04:23AM

Sorry, there is a mistake.
I mean placing the field with bigger cardinality at first, the index can be used for both "where a = x and b = y" and "where a = y"(say the cardinality of a is bigger than b)

Options: ReplyQuote


Subject Views Written By Posted
what is the difference between index (a,b) and (b,a) 103 Bing Wu 03/06/2017 04:14AM
Re: what is the difference between index (a,b) and (b,a) 53 Bing Wu 03/06/2017 04:23AM
Re: what is the difference between index (a,b) and (b,a) 42 Benoit St-Jean 03/11/2017 02:09PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.