S
S
SocFishing2014-08-25 17:25:46
MongoDB
SocFishing, 2014-08-25 17:25:46

How to reduce the size of records in MongoDB?

By default, MongoDB reserves 16 MB for each record, which makes it difficult when there are millions of such records.
How can I set the record size for a certain database or collection or make it not fixed, but expandable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-08-25
Protko @Fesor

docs.mongodb.org/manual/core/storage/#record-alloc...
in particular, the compact and repair commands should remove padding by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question