[SERVER-79019] Allow $bsonSize expression on intermediate results >16MB Created: 17/Jul/23  Updated: 11/Oct/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Romans Kasperovics Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:
Case:

 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.


Generated at Thu Feb 08 06:39:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.