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

Docs around SessionContext and parallelism could be more explicit

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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?
       

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

              Created:
              Updated: