Optimization Tips | Tip #25: Use compound indexes to make multiple queries fast
如果可以,多个查询时可以创建个混合索引.当然这个不是总是可以的,除非你多个查询时使用类似的参数.试想,你的应用程序运行将进行这些查询:collection.find({"x":criteria,"y":criteria,"z":criteria})
collection.find({"z":criteria,"y":criteria,"w":criteria})
collection.find({