M
M
Mr Freeman2015-08-12 19:53:42
MongoDB
Mr Freeman, 2015-08-12 19:53:42

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

2 answer(s)
O
Oleg, 2015-08-13
@wani

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.

D
Dan Ivanov, 2015-08-15
@ptchol

Maybe you should use the standard Mongolian sharding?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question