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

mongorestore --w vs --writeConcern

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      The interactions are not clear between mongorestore --w (which is the way to do it in MongoDB 2.6 and earlier):

      http://docs.mongodb.org/manual/reference/program/mongorestore/#cmdoption--w

      and mongorestore --writeConcern (which is new in 3.0):

      http://docs.mongodb.org/manual/reference/program/mongorestore/#cmdoption--writeConcern

      In particular, --w defaults to 0 but --writeConcern defaults to "majority". Apparently --writeConcern "wins" in 3.0, but this isn't clear.

      It's also not clear what happens if both are specified, or if there is any preference between the two. Presumably "--w N" is (now) merely a shortcut for "--writeConcern '{ w: N }'"? And the --w default is antiquated and no longer applies?

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 47 weeks, 3 days ago