[Enhancement]: Use indexes for Mongo collections #67
Labels
awaiting-approval
Topic has not been approved or denied
enhancement
An update to an existing part of the codebase
Checked Existing
What enhancement would you like to see?
When a collection has no indexes, Mongo will perform a full
COLLSCAN
on the collection, scanning all documents to perform the query. This can very easily eat all available resources when working withWhen there are many documents, and many scans of those documents, Mongo can easily max out CPU usage and remain there. When working with very large documents (such as those which contain files), this can also easily max out memory usage.
Any other details to share? (OPTIONAL)
No response
The text was updated successfully, but these errors were encountered: