Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1137

Server Selection Spec for "query-like" command helpers

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: None
    • None

      The Server Selection Spec says:

      The current list of "may-use-secondary" commands includes:

      • group
      • mapreduce
      • aggregate
      • collStats, dbStats
      • count, distinct
      • geoNear, geoSearch, geoWalk
      • parallelCollectionScan
      • text

      Associated command-specific helpers SHOULD take a read preference argument and otherwise MUST use the default read preference from client, database or collection configuration.

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

      C Driver status:

      • group - no helper function
      • mapreduce - no helper function
      • aggregate - up to spec, uses collection's read pref
      • collStats, dbStats - we only have collStats, needs to be updated
      • count, distinct - we only have count, needs to be updated
      • geoNear, geoSearch, geoWalk - no helper functions
      • parallelCollectionScan - no helper
      • text - no helper

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: