Answer the question
In order to leave comments, you need to log in
What are the methods for partitioning collections in mongodb?
Hello everyone, what are the possibilities for Mongi to split a large collection, for example, split a collection with logs by month of the date of creation of documents. Of course, the main goal is to scale the database in order to speed up interaction with the database.
Answer the question
In order to leave comments, you need to log in
How about using the $group aggregation and then writing the selected records to a new collection? You write a .js script and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question