Specify write concern on individual write operations

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Public API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Referencing: https://groups.google.com/forum/#!topic/mongodb-user/7fgsuhDASEo

      Use cases:

      1) The write concern is set at the client level. Different collections might require different write concerns. The only way to change that is to create a new client/connection. Q: Where is write concern at least hints at setting the write concern on a collection level.

      2) With regards to specifying a write concern on individual operations. We insert a document with a safe write concern ({:w => 'majority'}) because we don't want to lose it. However, any updates to a counter inside that document might not be as important (w: 1 or even w: 0).

      Thoughts?

              Assignee:
              Emily Stolfo (Inactive)
              Reporter:
              Justin Case
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: