Improve speed of patchset diffstat
Created by: eseliger
Currently, we fetch the whole patches, including their diffs which can be quite large. For a medium-size campaign on my local instance, transferring that data takes almost 2s. It would be much faster to just let postgres do the sum over the added, changed, deleted columns.