dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28856
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14485: Applying max limit to event query analytics
------------------------------------------------------------
revno: 14485
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-03-27 12:39:40 +0100
message:
Applying max limit to event query analytics
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/JdbcEventAnalyticsManager.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/JdbcEventAnalyticsManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/JdbcEventAnalyticsManager.java 2014-03-27 11:27:32 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/JdbcEventAnalyticsManager.java 2014-03-27 11:39:40 +0000
@@ -216,6 +216,10 @@
{
sql += "limit " + params.getPageSizeWithDefault() + " offset " + params.getOffset();
}
+ else
+ {
+ sql += "limit " + ( EventAnalyticsService.MAX_ROWS_LIMIT + 1 );
+ }
// ---------------------------------------------------------------------
// Grid