Edit /etc/systemd/system.conf Uncomment and change the value at line DefaultTimeoutStopSec=90s Reboot for the change to take effect (it will not take effect yet after editing the file before reboot).
db.the_collection_name.distinct('the_field_name') To get count of distinct value var collection = "the_collection_name"; var field = "the_field_name"; db[collection].distinct(field).forEach( function(value) { print(field + ", " + value + ": " + db[collection].count({[field]: value})) } )