Lets say I have document with the following two keys:
1) key1
2) key2
If I am creating compound index on both of them..
{'key1':1,'key2':1}
When running a query relevant only for key1.. does the index above is used? or I need to create specific index only for key1 also?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…