Use Update/Find/Delete/...Options as a context in Find/...Operation class to avoid copying

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.2.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Motivation

      **Take the class of com.mongodb.internal.operation.FindOperation and com.mongodb.internal.client.model.FindOptions as an example,

      com.mongodb.internal.operation.Operations#createFindOperation will copy each value of FindOptions into FindOperation, which a terrible for memory and performance

      Solution

      FindOperation can just accept FindOptions as a context without copying its values.

            Assignee:
            Jeffrey Yemin
            Reporter:
            James Chen
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: