MongoDB C100DBA Exam - Topic 1 Question 12 Discussion
Below is a sample document in a given collection test.{ a : 5, b : 3, c: 2, d : 1 >Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory sorting? Selectall valid.
A) db.test.find( { a: 5, b: 3 } ).sort( { c: 1, d : 1 } ) and D) db.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )
B) db.test.find( { a: 5, b: 3 } ).sort( { a: 1} )
C) db.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 > )
Sina
8 months agoYuette
9 months agoLeeann
9 months agoJanna
9 months agoVashti
9 months agoMargot
9 months agoDorthy
9 months agoGayla
9 months agoFrankie
9 months agoMaile
9 months agoAlise
9 months agoBarney
9 months ago