When trying to create a MongoDB capped collection with only a limit for the max number of documents and not a size limit (not sure how large will all the documents be), pymongo is giving the error
pymongo.errors.OperationFailure: specify size:<n> when capped is true
after running
db.create_collection('helloworld', capped=True, max=86400)
Is it possible to just define the max parameter?
Otherwise, is there any danger in putting a very large number for size?
As the docs say:
MongoDB pre-allocates data files of the requested maximum size, so set that size parameter to something reasonable.