Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101490

Add default implementation of MatchExpression::getOptimizer

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      we have the following default implementation

      ```
      ExpressionOptimizerFunc getOptimizer() const final {
      return [](std::unique_ptr<MatchExpression> expression)

      { return expression; }

      ;
      }
      ```

      in at least the following implementations:

      • WhereMatchExpressionBase
      • GeoMatchExpression
      • GeoNearMatchExpression
      • TwoDPtInAnnulusExpression
      • SizeMatchExpression
      • TextMatchExpressionBase
      • TypeMatchExpressionBase
      • InternalSchemaBinDataSubTypeExpression
      • AlwaysBooleanMatchExpression
      • InternalBucketGeoWithinMatchExpression
      • ComparisonMatchExpressionBase
      • RegexMatchExpression
      • ModMatchExpression
      • ExistsMatchExpression
      • BitTestMatchExpression
      • at least half of the JSON schema operators

      we should make this the default implementation

            Assignee:
            Unassigned Unassigned
            Reporter:
            jess.balint@mongodb.com Jess Balint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: