Performance of totals in data entry

Hi,
not sure if this is a bug or if it has been like this all the time - however, the calculation of data element totals in data entry is very slow for datasets with more than 50-100 totals. Has been setting up a morbidity form with 100+ data elements with age/gender breakdown, and the data entry hung 2-3 seconds for each new value that was entered while all the totals were updated. In the end we made custom javascript code for calculating the totals, which work find, but it would be a lot easier to use the built in totals.

Looking at the code it seems all totals are updated for each new value, but it shouldn’t be that difficult to update only the value related to the data element of the value that was saved?

Olav

Hi Olav,

okay we will have to look into this.

Lars

···

On Wed, Jun 18, 2014 at 12:13 PM, Olav Poppe olav.poppe@me.com wrote:

Hi,
not sure if this is a bug or if it has been like this all the time - however, the calculation of data element totals in data entry is very slow for datasets with more than 50-100 totals. Has been setting up a morbidity form with 100+ data elements with age/gender breakdown, and the data entry hung 2-3 seconds for each new value that was entered while all the totals were updated. In the end we made custom javascript code for calculating the totals, which work find, but it would be a lot easier to use the built in totals.

Looking at the code it seems all totals are updated for each new value, but it shouldn’t be that difficult to update only the value related to the data element of the value that was saved?

Olav


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp