seniorMongoDB
What is the Oplog and why is it important?
Updated May 1, 2026
Short answer
The Oplog (Operations Log) is a capped collection that stores a rolling record of all changes to data.
Deep explanation
It is used by Secondaries to replicate data from the Primary. It's also the backbone of Change Streams and point-in-time recovery.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro