MCQs>IT & Programming>MongoDB>You have a collection with millions of documents. Each time you attempt to sort. MongoDB runs out of memory. What might help?
MongoDB MCQs
You have a collection with millions of documents. Each time you attempt to sort. MongoDB runs out of memory. What might help?
Answer
Correct Answer: Create an index on the field you are sorting.
Explanation:
Note: This Question is unanswered, help us to find answer for this one