Created
September 2, 2016 19:26
-
-
Save shavit/ecc1a1518714d50699b2aba8d6de3225 to your computer and use it in GitHub Desktop.
Create a tailable MongoDB capped collection
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.createCollection("jobs", { | |
capped: 1, | |
size: 100000, | |
max: 10 | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment