[SERVER-9281] Add setReadPref() JS method to database and collection objects Created: 08/Apr/13 Updated: 09/Jul/16 Resolved: 08/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, Shell |
| Affects Version/s: | 2.4.1 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeremy Mikola | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
These would be alternatives to the older setSlaveOk() methods. Currently, one can only set read preferences at the connection and cursor level. |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 08/Apr/13 ] |
|
Dup of |
| Comment by Jeremy Mikola [ 08/Apr/13 ] |
|
Documentation for these methods should be similar to the connection method (once written). |