InterviewSolution
Saved Bookmarks
| 1. |
findupdateOneinsertOne |
|
Answer» MongoDB supports Capped COLLECTIONS which are fixed-size collections. Once the allocated space is filled up, space is made for new documents by REMOVING (OVERWRITING) oldest documents. The insertion order is preserved and if a query does not specify any ORDERING then the ordering of results is same as the insertion order. The oplog.rs collection is a capped collection, thus ensuring that the collection of logs do not GROW infinitely. |
|