Mongo console
db.serverStatus().storageEngine
You will see a response like…
{ "name" : "wiredTiger" }
To get more information about the engine (in this case wiredTiger)
db.serverStatus().wiredTiger
Mongo console
db.serverStatus().storageEngine
You will see a response like…
{ "name" : "wiredTiger" }
To get more information about the engine (in this case wiredTiger)
db.serverStatus().wiredTiger
var collections = db.getCollectionNames();
for(var i = 0; i < collections.length; i++){
var name = collections[i];
print(name + ' - ' + db[name].count() + ' records');
}
This simple one liner will list all the collections along with the number of indexes it has.
db.getCollectionNames().forEach(function(collection) {print(collection + ": " + db[collection].getIndexes().length);});
More info here:
https://stackoverflow.com/questions/39952005/count-of-indexes-for-each-collection-in-mongodb
Solution to this irritating problem can be found here
http://javahonk.com/dynamic-web-module-3-1-requires-java-1-7-or-newer/
So you are getting this error in your Eclipse IDE
web.xml is missing and <failOnMissingWebXml>> is set to true
Here how you fix this silly error
Right click the project->Java EE Tools->Generate Deployment Descriptor Stub
Voila. Problem fixed.