We have a script recreateIssueStatistics.pl to find and re-create transactions missing from statistics. It's not mentioned in the manual at all. We should document its usage (preferably after we make it less likely to erroneously duplicate a bunch of stuff, per bug 28968).