Dashboard Stats

Is it possible to have real time statistics in dhis2 without updating analytics. I have encountered a situation where statistics on my dashboard are not updated as fast as i would like.

1 Like

Interesting one! Probably a cronjob to invoke analytics at a user defined frequency would do. Haven’t tried it though.

paleu256

2 Likes

Hi Herbert,
I suppose it depends on what you mean by “real time statistics”. If you want DHIS2-defined indicators, probably cronjob or scheduledJob to invoke analytics more frequently is best approach.

Or if you want something more simple but real-time, like the number of new program enrollments today, for example, you can extract this directly from the data tables using SQL view.

1 Like

I scheduled analytics to run every hour and now the statistics are updated every hour. Am also using a no cache strategy. Thank you @paleu256 and @brian all for the support.

2 Likes