Skip to content

Commit b44f52d

Browse files
backport: perf: Remove count distinct on /api/dataSummary (#23997)
* perrf: Remove count distinct on /api/dataSummary (#23983) * Remove count distinct on /api/dataSummary * chore: trigger CI
1 parent 15505b5 commit b44f52d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/datavalue/hibernate/HibernateDataValueStore.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ public int getDataValueCountLastUpdatedBetween(
229229
predicateList.add(root -> builder.lessThanOrEqualTo(root.get(LAST_UPATED), endDate));
230230
}
231231

232-
return getCount(
233-
builder, newJpaParameters().addPredicates(predicateList).count(builder::countDistinct))
232+
return getCount(builder, newJpaParameters().addPredicates(predicateList).count(builder::count))
234233
.intValue();
235234
}
236235

0 commit comments

Comments
 (0)