Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-559

GridFS with multi-document transaction support does not work

    XMLWordPrintable

Details

    • Spec Change
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • GridFS

    Description

      In MongoDB 4.0, multi document transactions does not work with GridFS because:

      • Transaction is represented in single oplog entry, must be within 16MB limit.
      • Default transaction lifetime is only 60 seconds (big files could take a while to upload). Increasing this default is going to affect WT cache pressure.

      GridFS with transaction would be a very special case (I don't know if there's any yet).
      In PyMongo case, if a `ClientSession` is provided it will attempt to create an index for `fs.files` and `fs.chunks` collections grid_file.pyL196, currently creating an index in a transaction is prohibited in the server.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wan.bachtiar@mongodb.com Wan Bachtiar
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: