Mongos> Db.find ({"User": "Jhon"}). Sort ({"Name": 1}). Limit. Explain () { "Cursor": "Btreecursor user_1", "nscanned": 10100, "Nscannedobjects": 10100, "N": 100, "Scanandorder": true, "Millis": 116, "Nyields": 0, "Nchunkskips": 0, "Ismultikey": false, "Indexonly": false, "Indexbounds": { "User": [ [ "Jhon", "Jhon" ] ] } } Second, I do $or query with sort (): Mongos> Db.find ({"$or": [{"User": "Jhon"}, {"Owner": "Jhon"}]}). Sort ({"Name": 1}). Limit. Explain () { "Cursor": "Btreecursor name_1", "nscanned": 1010090, "Nscannedobjects": 1010090, "N": 100, "Millis": 3800, "Nyields": 0, "Nchunkskips": 0, "Ismultikey": false, "Indexonly": false, "Indexbounds": { ' Name ': [ [ { "$minElement": 1 }, { "$maxElement": 1 } ] ] } } Last, I do $or query without sort (): Mongos> Db.find ({"$or": [{"User": "Jhon"}, {"Owner": "Jhon"}]}). Limit. Explain () { "Cursor": "Btreecursor user_1", "nscanned": 100, "Nscannedobjects": 100, "N": 100, "Millis": 0, "Nyields": 0, "Nchunkskips": 0, "Ismultikey": false, "Indexonly": false, "Indexbounds": { "User": [ [ "Jhon", "Jhon" ] ] } } |