This is a good night to have a good dream.
I wonder how to backup part of documents when the number of documents reaches the number I set?
I searched, But I just find “How to create capped collection”.
This just deletes old documents when the collection reaches maximum number of documents.
All I need is these.
When the number of documents in a collection reaches the number I set,
- Backup part of documents in a collection.
- Delete backed up documents in a collection.