Allow $bsonSize expression on intermediate results >16MB

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2026-02-02, QE 2026-02-16
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In theory, in some cases it would be nice to select / deselect oversized events using $bsonSize function, e.g.:

      { $match: { $expr: { $lt: [{ $bsonSize: "$$ROOT" }, 16000000] } } }
      

      Currently though, the $bsonSize function will throw BSONObjectTooLarge error when applied to a large documents in intermediate results.

      It would be nice to allow $bsonSize expression on intermediate results >16MB.

            Assignee:
            Lyublena Antova
            Reporter:
            Romans Kasperovics
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: