Created
June 21, 2011 09:32
-
-
Save benve/1037527 to your computer and use it in GitHub Desktop.
Esempi MongoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Per ottenere gli ultimi mongos connessi al cluster | |
//Collegarsi ad un mongos | |
use config | |
//Stampa i mongos che hanno risposto al ping negli ultimi 5 minuti | |
db.mongos.find({ "ping" : { $gt : new Date((new Date) - 5 * 60 * 1000) }}).forEach(printjson) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment