Optimize numberToReturn for OP_GET_MORE based on the limit

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.9
    • Affects Version/s: 1.8.3
    • Component/s: Performance
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If an application requests a limit that turns out to be great than the number of documents returned from OP_QUERY, the driver should adjust the numberToReturn value for the OP_GET_MORE to ensure that no more documents are returned by the server than necessary. Example with a limit of 105:

      1. For OP_QUERY, set numberToReturn=105, and receive 101 documents in OP_REPLY (the driver already does this).
      2. For OP_GET_MORE, instead of setting numberToReturn=105, set it to 4.

              Assignee:
              Robert Stam
              Reporter:
              Jeffrey Yemin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: