db.col_name.createIndex({"A": 1, "B", 1})
db.col_name.find({A: {$in: [1, 2, 3]} B: 50})
Since three values are selected for the prefix index, would that invalid the compound index?
If not, how will it solve this problem?
db.col_name.createIndex({"A": 1, "B", 1})
db.col_name.find({A: {$in: [1, 2, 3]} B: 50})
Since three values are selected for the prefix index, would that invalid the compound index?
If not, how will it solve this problem?