Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
v6.0
-
QE 2022-05-02, QE 2022-05-16
Description
I was surprised to see the following:
when profiling
db.products.aggregate([{$group:{_id:'$type', count: {$sum:1}}}], {hint:{'$natural':1}})
|
Because we just summing the constant 1, there is no need for compensated summation: we should just count using a 64-bit integer. It won't overflow.
Attachments
Issue Links
- has to be done after
-
SERVER-64227 Remove $sum/$avg merging logic which handles old input data format from a shard after branching 6.0
-
- Closed
-
- related to
-
SERVER-67282 $add expression should not use DoubleDoubleSummation in SBE
-
- Closed
-
-
SERVER-77203 Classic Group should not use DoubleDoubleSummation for count
-
- In Code Review
-