Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3445

Improve documentation for custom readPreference tags

    • Type: Icon: Question Question
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3
    • Affects Version/s: None
    • Component/s: Docs
    • Labels:
      None

      As a user, I may direct a query to a different node depending on the query itself so I can control the priority of the machine to bother. I can currently do this using Database.with_options(readPreference=...). However, if I want to send a query to an Analytic node, I can't use readPreference but need readPreferenceTags. Surprisingly, this isn't supported in the with_options method of Database and currently needs to be defined on the connection string.

       

      This really seems like an omission so it works as bug, improvement, or new feature.

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            ewan.higgs@deliverect.com Ewan Higgs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: