-
When using the default index ("_id" field) in a query, does the collection perform a comparison of values with every document until it matches that id?
Or is it stored in a way that it references a slot in memory (to provide direct access)? -
Do these two behave exacly the same?:
A) SomeCollection.findOne({_id:'du4hgyeurn'})
B) SomeCollection.findOne('du4hgyeurn')