Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 414 Bytes

cappedCollection.md

File metadata and controls

4 lines (3 loc) · 414 Bytes

In MongoDB, a capped collection is a fixed-size collection that maintains insertion order. Once a capped collection reaches its maximum size, it behaves like a circular queue, automatically overwriting the oldest documents with new ones. Capped collections are often used for logging, caching, or other use cases where maintaining a fixed-size dataset with a limited history is desirable.


From: MongoDB docs!