When creating a capped collection of smaller size, which documents are removed

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When creating a capped collection of smaller size, which documents are removed? I think the logical behavior would be to remove the oldest documents. Is this how the `toCappedCollection` or `cloneCollectionAsCapped` behave? Are there any guarantees?

            Assignee:
            Dmitry Agranat
            Reporter:
            Puya Daravi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: