Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-288

Document how to specify singleBatch option with Find

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.2.0
    • Docs
    • None

    Description

      Per behackett's comments in SPEC-941, it sounds like we should just document that a negative limit implies a single batch of results. Rather than allude to the extension's singleBatch option, I suggest we quote language from the server's cursor.limit() documentation:

      A negative limit is similar to a positive limit but closes the cursor after returning a single batch of results. As such, with a negative limit, if the limited result set does not fit into a single batch, the number of documents received will be less than the specified limit. By passing a negative limit, the client indicates to the server that it will not ask for a subsequent batch via getMore.

      Attachments

        Activity

          People

            katherine.walker@mongodb.com Katherine Walker (Inactive)
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: