I have Mongodb 2.6 version installed on server and the physical file for
each database consists of
and 1 .ns file
These are MMAPv1 <https://docs.mongodb.org/manual/core/mmapv1/> physical
files. The MMAPv1 storage engine was the default (and only) storage engine
for MongoDB version 2.6.x.
I’ve now got another database server with 3.2 installed and noticed the
filestructure is completely different.
The files i can see are a bunch of collection-nn-nnnnnnnnnnnnnnnn.wt and
These are WiredTiger <https://docs.mongodb.org/manual/core/wiredtiger/>
physical files, which is currently (as per MongoDB version 3.2.x) the
default storage engine employed by MongoDB.
Is there a configuration or parameter to set so that the filestructure
contained by database??
No. The file structure is determined by the selected database storage
engine and cannot be changed. I would also strongly discourage copying
individual files between dbpath (especially on a running mongod instance)
as this will likely introduce data corruption.
If you need to copy one database to another server, you might want to take
a look at the db.copyDatabase()
Also, there are many advantages of using WiredTiger compared to MMAPv1,
- Document level concurrency
- Better multithreaded performance
- MultiVersion Concurrency Control to ensure data consistency
Unless you have a very specific need for MMAPv1 features, I would
recommend you to use the WiredTiger storage engine instead due to
WiredTiger’s generally better performance, concurrency abilities, and
compression capabilities. Also, MMAPv1 files may be larger compared to the
actual data size, due to storage padding and fragmentation
You received this message because you are subscribed to the Google Groups
For other MongoDB technical support options, see:
You received this message because you are subscribed to a topic in the
Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit
To unsubscribe from this group and all its topics, send an email to
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.