Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53965

Add option to use transactions with capped collections

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Repl 2021-02-08, Repl 2021-02-22

      Description

      It seems recent tickets are restricting use of capped collections with transactions, e.g. SERVER-47824. However, it seems that if a user knows what he/she is doing, they should have the option to enable transactions with capped collections for both read and write. Perhaps such option could be disabled by default and required user to set a param on the transaction (allowCappedCollections: true).

      My use case: I use a lock collections for my transactions, and upsert documents to it with the scope I want to lock. This lock collection grows indefinitely, and so setting some reasonable size cap (100MB) would be ideal. In practice the locks I would ever write at any one time would never be more than 1MB even in a degenerate scenario, so there is no way the cap is going to affect the transactional integrity of my system in the real world.

        Attachments

          Activity

            People

            Assignee:
            judah.schvimer Judah Schvimer
            Reporter:
            shields@tablecheck.com Johnny Shields
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: