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

Document how to specify singleBatch option with Find

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: None
    • Component/s: Docs
    • Labels:

      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.

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