Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6983

The shell should support ReadPreferences and WriteConcerns similarly to drivers

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • 2.2.0
    • None
    • Shell
    • None

    Description

      Looks like the shell doesn't have any support for WriteConcerns, and limited support for ReadPreferences (there's a readPref() method on the cursor). Especially for demos, tutorials, and trainings, it would be nice if the shell supported functionality analogous to what we aim for in the drivers, to wit:

      • setting a default read preference on the collection, database, or connection;
      • setting a default write concern on the collection, database, or connection;
      • overriding a defaulted write concern during insert, update, remove.

      I don't know what I would want the exact semantics to be, but the main thing would be to be able to show people the basic patterns we mean for them to use in real programs.

      Doc changes needed: whatever interfaces people come up with ought to get documented.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-platform DO NOT USE - Backlog - Platform Team
              richard.kreuter Richard Kreuter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: