Last modified: 2014-02-28 20:41:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44299, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42299 - use aggregate data rather than individual contributions
use aggregate data rather than individual contributions
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ContributionReporting (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
wikimedia[unmaintained]
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-20 20:27 UTC by Adam Wight
Modified: 2014-02-28 20:41 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Adam Wight 2012-11-20 20:27:16 UTC
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;
Comment 1 Andre Klapper 2014-02-28 20:41:51 UTC
[[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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links