MongoDB indexes are ignored inside the $facet pipeline
I have all combination of compound indexes for this collection. The aggregattion query i used is: db.products.aggregate( [ { $facet: { "categorizedByColor": [ { $match: { size: { $in : [50,60,70] }, brand: { $in : ["Raymond","Allen Solly","Van Heusen"] }…