Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-886

Optimize numberToReturn for OP_GET_MORE based on the limit

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.9
    • Component/s: Performance
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: