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? Select all valid.
You have designed a web application with mongoDB. You have configured replication. The replica set is in place and function properly. What happens in case of failure?
What does the following query do when performed on the posts collection? db.posts.update({_id:l},{Title:This is post with ID 1"})
Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?