Page MenuHomePhabricator

use aggregate data rather than individual contributions
Closed, DeclinedPublic

Description

It's horribly inefficient to rebuild the reporting from individual contributions. It's also pointless to ever rebuild in real-time (triggered by expired cache).

Instead, I propose aggregating from a cron job, or in the db trigger -- a trigger on public_reporting could update public_reporting_days, along these lines:
new_total = cur_total + amount;
new_number = cur_number + 1;
new_average = (cur_average * cur_number + amount) / new_number;


Version: master
Severity: enhancement
Whiteboard: wikimedia[unmaintained]

Details

Reference
bz42299

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:48 AM
bzimport set Reference to bz42299.
bzimport added a subscriber: Unknown Object (MLST).

[[mw:Extension:ContributionReporting]] has not been maintained for a while and has been superseded in Wikimedia Foundation by http://frdata.wikimedia.org/

It is currently unlikely that there will be any further active development of ContributionReporting.
Closing this report as WONTFIX to reflect reality.
Please feel free to reopen this report in the future if anyone takes the responsibility for active development of ContributionReporting again.