In SERVER-85588, we reduce the number of BSON allocations when constructing intervals by passing unowned BSON to Interval in the case of building bounds for $in. We should explore doing this for other operators like $eq, $lt, $gt, etc.
In SERVER-85588, we reduce the number of BSON allocations when constructing intervals by passing unowned BSON to Interval in the case of building bounds for $in. We should explore doing this for other operators like $eq, $lt, $gt, etc.