我的指数结构如下:
BTREE merchant_id
BTREE flag
BTREE test (merchant_id, flag)
I do a SlectT query as a :
SELECT badge_id, merchant_id, badge_title, badge_class
FROM badges WHERE merchant_id = 1 AND flag = 1
what index would be better? Does it matter if they are in a seperate index?