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

Histogram CE for arbitrarily nested AND/OR trees of sargable nodes

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • QO 2025-01-20

      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@mongodb.com Timour Katchaounov
            Reporter:
            philip.stoev@mongodb.com Philip Stoev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: