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

Should ShardedConnection allow specifying a connection-level read preference?

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      As I understand it, mongos on 2.2 supports specifying read preferences, which are applied when the query is proxied to the underlying mongods (feel free to correct me if that's wrong).

      I'm pretty sure I've successfully passed a read preference to an individual query to a ShardedConnection, but it doesn't look like ShardedConnection supports specifying a connection-level read pref like ReplSetConnection does.

      It seems like it should, but I'm not entirely sure I understand how the pieces fit together. Is that the sort of thing that makes sense?

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            evan@stripe.com Evan Broder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: