Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-948

Support singleBatch option in newer drivers

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • CRUD
    • None

    Description

      The crud spec currently omits the singleBatch option from FindOptions in favor of the legacy negative limit behavior used with pre 3.2 servers. See the second to last question in the Q&A section for more info and justification.

      Newer drivers (e.g. Swift and Rust) never supported this legacy behavior in the first place, so it may make sense for them to just support the singleBatch option directly and only accept unsigned limits instead. It would lead to a minor API difference between newer drivers and the old ones, but that difference would exist in the name of simplicity and clarity, so I'm not sure how much of a concern it is.

      Attachments

        Activity

          People

            Unassigned Unassigned
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: