Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-911

Specify write concern on individual write operations

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Public API
    • 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 Emily Stolfo
            Reporter:
            justincase Justin Case
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: