Speed up counting comments and drafts in the issue view. The old approach spawned a query for each Patch in the issue. This made e.g. /990 exceed the deadline every single time, since it has about 100 patches.
Speed up counting comments and drafts in the issue view.
The old approach spawned a query for each Patch in the issue.
This made e.g. /990 exceed the deadline every single time,
since it has about 100 patches.


git-svn-id: 095a516e186c72f46b708383d0d3f28c2432e8a1@126 e30e9e8f-1b4c-0410-881d-6f13584adfe0

imirkin/rietveld,termie/rietveld-mirror,termie/rietveld-mirror,imirkin/rietveld