Streamline set cache optimization for set operations

XMLWordPrintableJSON

    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the $project stage of the aggregation framework one set operation ($setIsSubset) has a performance optimization (caching a constant set) which provides tremendous benefits if the set used is big enough.

      I think it would be nice to streamline this optimization to all set operations as it is easy to implement and they could benefit from it.

      Here is the link to the code implementing this optimization: https://github.com/mongodb/mongo/blob/master/src/mongo/db/pipeline/expression.cpp#L2354

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Antoine Hom
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: