Skip to content

Instantly share code, notes, and snippets.

@ranman
Created November 27, 2012 01:40
Show Gist options
  • Save ranman/4151855 to your computer and use it in GitHub Desktop.
Save ranman/4151855 to your computer and use it in GitHub Desktop.
> db.createCollection("newlogs", {capped: true, size: NumberLong("100000000000")});
{ "ok" : 1 }
> db.newlogs.stats()
{
"ns" : "buildlogs.newlogs",
"count" : 0,
"size" : 0,
"storageSize" : 100000001312,
"numExtents" : 47,
"nindexes" : 1,
"lastExtentSize" : 1264365568,
"paddingFactor" : 1,
"systemFlags" : 1,
"userFlags" : 0,
"totalIndexSize" : 8176,
"indexSizes" : {
"_id_" : 8176
},
"capped" : true,
"max" : 2147483647,
"ok" : 1
}
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment