Tsallaka zuwa abun ciki
Justice Tech School

Capped Collections

Fixed size collections that overwrite oldest data.

Example
db.createCollection("logs", { capped: true, size: 100000 })

Exercise

Fixed size.

{ : true }

Quiz Test

What happens when a capped collection is full?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.