InterviewSolution
Saved Bookmarks
| 1. |
When using Compound Index in MongoDB, what are the key points to consider when writing queries so that the query plan is able to use this index? |
|
Answer» In the CASE of an ERROR, whether the remaining OPERATIONS get processed or not is determined if the bulk operation is ordered or unordered. If it is ordered, then MongoDB will not PROCESS the remaining operations, WHEREAS if it is unordered , MongoDB will continue to process the remaining operations. Note: “ordered” is an optional Boolean parameter that can be passed to bulkWrite(), by default this is true. |
|