← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16834: Analytics tables, logging

 

------------------------------------------------------------
revno: 16834
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-09-26 18:10:59 +0200
message:
  Analytics tables, logging
modified:
  dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.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/table/DefaultAnalyticsTableService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java	2014-09-14 22:54:55 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java	2014-09-26 16:10:59 +0000
@@ -111,8 +111,7 @@
         
         final List<AnalyticsTable> tables = tableManager.getTables( lastYears );
         
-        clock.logTime( "Partition tables: " + tables + ", last years: " + lastYears );
-        
+        clock.logTime( "Partition tables: " + tables + ", last years: " + lastYears );        
         notifier.notify( taskId, "Creating analytics tables, processes: " + processNo );
         
         createTables( tables );
@@ -147,8 +146,11 @@
         
         swapTables( tables );
         
+        clock.logTime( "Partition tables: " + tables + ", last years: " + lastYears );
+        notifier.notify( taskId, "Clearing caches" );
+
         partitionManager.clearCaches();
-        
+
         clock.logTime( "Table update done" );
         notifier.notify( taskId, "Table update done" );
     }