Last active
January 28, 2016 08:36
-
-
Save curtkim/8a3a3ec9c52490c2d935 to your computer and use it in GitHub Desktop.
mongo
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
db.path.aggregate( | |
[ | |
{ | |
$group : { | |
_id : "$hour", | |
count: { $sum: 1 } | |
} | |
} | |
] | |
) | |
db.createCollection( "path", { storageEngine: {wiredTiger: { configString: 'block_compressor=zlib' }}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment