How to know which storage engine is used in mongodb?

Member

by denis , in category: MySQL , 4 months ago

How to know which storage engine is used in mongodb?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by shyann , 4 months ago

@denis 

To determine which storage engine is being used in MongoDB, you can run the following command in the MongoDB shell:

1
db.serverStatus().storageEngine


This command will return the name of the storage engine being used in your MongoDB deployment, such as WiredTiger or MMAPv1. You can also check the output of the db.serverStatus() command for more detailed information about the storage engine and other server-related statistics.