Histogram CE for AND/OR trees of all sargable ME nodes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2025-01-20, QO 2025-02-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This expression is nothing fancy and valid:

      Enterprise test> db.foo.find({$and: [{ $or: [{ a: 0 }, { a: 1 }] }, { $or: [{ a: { $lt: 90 } }] }]});
      MongoServerError[HistogramCEFailure]: encountered child of AndMatchExpression that was not sargable (ComparisonMatchExpression): { a: { $in: [ 0, 1 ] } }
      
      

            Assignee:
            Timour Katchaounov
            Reporter:
            Philip Stoev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: