-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.2.0
-
Component/s: Shell
-
None
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.
- is duplicated by
-
SERVER-9281 Add setReadPref() JS method to database and collection objects
- Closed
- is related to
-
SERVER-6964 Add WriteConcern object to shell, and provide overloads to write functions
- Closed
- related to
-
SERVER-6935 shell cursor help should include readPref documentation.
- Closed
-
SERVER-4464 drivers and mongos should support 5 read preferences
- Closed