From ea2e02ad656640c17d520b5a22c168c3c1faef56 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 13 Sep 2017 14:36:12 +0200 Subject: comments --- common/datastorequery.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp index ad21910..f3d9415 100644 --- a/common/datastorequery.cpp +++ b/common/datastorequery.cpp @@ -303,8 +303,9 @@ public: } else { //During initial query, do nothing. The lookup above will take care of it. //During updates adjust the reduction according to the modification/addition or removal + //We have to redo the reduction for every element, because of the aggregation values. if (mIncremental) { - //redo the reduction + //Redo the reduction to find new aggregated values QMap aggregateValues; auto selectionResult = reduceOnValue(reductionValue, aggregateValues); -- cgit v1.2.3