June 2014
Intermediate to advanced
696 pages
38h 52m
English
A great feature of MongoDB is the ability to create a capped collection. A capped collection is a collection that has a fixed size. When a new document needs to be written to a collection that exceeds the size of the collection, the oldest document in the collection is deleted, and the new document is inserted. Capped collections work great for objects that have a high rate of insertion, retrieval, and deletion.
The following are the benefits of using capped collections:
They guarantee that the insert order is preserved. Thus queries do not need to utilize an index to return documents in the order in which they were stored, ...
Read now
Unlock full access