Optimize modifier update serialization by replacing BSONObj with Value

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The serialization methods – serialize()/value()/operatorValue() – in UpdateNode construct and return single-element BSONObj. The common pattern is:

      return BSON("" << opts.serializeLiteral(_val));
      

      We may optimize this by avoiding the BSONObj wrapper.

            Assignee:
            Gil Alon
            Reporter:
            Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: