InterviewSolution
Saved Bookmarks
| 1. |
Why _id index in a sharded cluster is recommended to be used as a shard key? |
|
Answer» All the 3 projection operators, i.e., $, $elemMatch, $slice are USED for MANIPULATING arrays. They are used to LIMIT the contents of an array from the query results. For example, db.startups.find( {}, { SKILLS: { $slice: 2 } } ) selects the first 2 items from the skills array for each document returned. |
|