Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3011

Docs around SessionContext and parallelism could be more explicit

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None

    Description

      Bulk operations can be run "unordered" which may result in parallel op execution (doc link).

      mongo.SessionContext is not safe for use in concurrent code, however (doc link).

      To me, it's unclear if this means I may not perform unordered bulk writes within transactions or not ([community question link](https://www.mongodb.com/community/forums/t/sessioncontext-is-not-safe-for-use-in-goroutines-does-this-preclude-unordered-bulk-writes/248644)). I suppose it may be the case that only user-authored parallelism is unsafe, while driver-managed parallelism is handled gracefully?
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            nate@greatcloak.com Nate Starun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: