Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
None
-
Query Optimization
Description
The $internalConstructStats accumulator currently accepts the full root document and expects a hardcoded field "val" to contain the actual data to accumulate. It would be better (and more inline with other accumulators) to have the desugaring phase handle this and pass the value directly to the accumulator, so something like this:
$_internalConstructStats: {
|
val: "$val",
|
sampleRate: sampleRate
|
}
|