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

Update command routing for Server Selection Spec

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None

    Description

      Update PyMongo's database.command() method and various command helpers like aggregate(), group(), find_and_modify(), etc. to follow the new Server Selection Spec:

      https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#use-of-read-preferences-with-commands

      Database.command() already follows the spec in PyMongo 3: ignores the Database instance's read preference. Uses read preference mode PRIMARY by default, obeys whatever read preference the user explicitly configures.

      Check over the command helpers like Collection.aggregate or Database.collection_names to ensure they follow the spec as well. Commit f6a260c6 brought us close to compliance.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: