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

Allow $bsonSize expression on intermediate results >16MB

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • Query Execution

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: