Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3126

Reading from replicas under certain situations

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      I see how you can set consistency to eventual on get reads off the secondaries
      http://mongoid.org/en/mongoid/docs/installation.html#replica

      However, there can be replica lag so this isn't safe for most/all situations on our site. We do have specific queries we'd like to run off the secondaries (or at least it's ok if they are eventual). Is there a way to set a query to run off a replica/secondary on a per query basis? Thanks!

            Assignee:
            Unassigned Unassigned
            Reporter:
            barmstrong Brian Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: