The grid (core) ยท console.warn
the {adapter} adapter cannot compute {grouped }aggregates, so every requested statistic is computed client-side. Correct, and slower than it needs to be.
Printed by The grid (core), prefixed [lattice], since 1.17.0.
Warnings reference › source.pushdown.aggregates.**
- Identifier
source.pushdown.aggregates.**- Raised by
- The grid (core)
- Since
- 1.17.0
What happened
The adapter implements neither executeAggregates nor - for a grouped query - executeGroupedAggregates, so no statistic is pushed at all: the whole set falls to the client rather than half of it being pushed. The figures are right and every one of them costs a full fetch.
The fix
Implement the aggregate method on the adapter. The id carries a .grouped suffix when it was the grouped variant that was missing.
Reference
Covered in full at the API reference.