AlexMihov
7/6/2017 - 12:45 PM

Show Stats

Show Stats

var collections = db.getCollectionNames();
for(var i = 0; i < collections.length; i++){
  var name = collections[i];
  if(name.substr(0, 6) != 'system'){
      var c = db.getCollection(name).count() ;
      if (c > 1000) print(name + ' - ' + c + ' records');
  }
}