← Back to team overview

dhis2-devs team mailing list archive

Re: Generating analytics for a specific dataset

 

Hi Jasper,

unfortunately - no there is no way to trigger analytics for specific data
sets currently.

By default, the analytics process will generate resource tables, table for
aggregate data values, tables for events. By setting "skipEvents=false" in
the query, the analytics process will skip the generation of events tables.

regards,

Lars



On Wed, Sep 7, 2016 at 6:07 PM, Jasper Timm <jasper.timm@xxxxxxxxxxxxxxxxxx>
wrote:

> Hi all,
>
> We're currently hitting the /resourceTables/analytics endpoint regularly
> from a cron script to keep our reports up to date. On our current DHIS2
> instance this takes around 2 minutes to complete. However, we're soon
> planning on migrating to another instance with a LOT more
> datasets/dataelements e.t.c. where the analytics job takes around 2 hours
> to run, hence is only done once overnight.
>
> We'd still like to be able to keep the reports which rely on only our
> dataset/dataelements up to date regularly though. Is there a way of
> triggering the analytics to run only for a specific dataset and it's
> related dataelements?
>
> Perhaps someone could explain the effects of the skip* query params for
> the endpoint in a little more detail? http://dhis2.github.
> io/dhis2-docs/2.22/en/developer/html/ch01s33.html
>
> As a note, something similar has been discussed before when a colleague of
> mine asked about Realtime Analytics: https://lists.
> launchpad.net/dhis2-users/msg10004.html
>
> Thanks!
>
> - Jasper
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
lars@xxxxxxxxx
http://www.dhis2.org <https://www.dhis2.org/>

References