Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9533

Docs for SERVER-22841: Add write concern option to not wait for snapshot on majority writes

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Engineering Ticket Description:

      Once ReadConcernMajority support is enabled snapshots are created periodically. But when WriteConcern.Majority is used, it must wait for a snapshot so that ReadConcern.Majority can then read that write.

      There are cases when one might want to do majority writes but not wait for a snapshot – there is no need to read your own writes using ReadConcern.Majority basically.

      // example
      coll.insert({}, {writeConcern:{w:"majority", waitForSnapshot:false}});
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 20 weeks, 4 days ago