Q35: What is a Capped Collection, and what are its characteristics?
A Capped Collection is a fixed-size collection that maintains insertion order. Once allocated size limits are reached, it automatically overwrites the oldest documents in a circular buffer pattern (FIFO). Writes are fast because no document relocation occurs. Updates that increase document size are prohibited.
Key Takeaways
- Fixed-size circular buffer storage.
- Ideal for circular event logging, activity streams, and notification queues.
Knowledge Check
What happens when a Capped Collection reaches its configured maximum byte capacity?