MongoDB & NoSQL (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is a Capped Collection in MongoDB?
junior LevelDatabases & SQL
In Simple Words: A Capped Collection is a fixed-size, circular collection that maintains insertion order:
- Once the allocated maximum size (e.g. 1 GB) is filled, new documents automatically overwrite the oldest documents in the collection (like a circular ring buffer).
- Extremely fast for log ingestion, telemetry, and message buffering.