Optimize memory consumption in dashboard

* Store records with fields required for aggregation
* Load records from runtime storage when details are needed
* Refactoring of activity summary report

Part of blueprint memory-optimizations

Change-Id: I87c14ef0ad9583632cb2fcba4af6d43a0d3ec0b1
This commit is contained in:
Ilya Shakhat
2014-04-28 18:52:39 +04:00
parent 34013400e7
commit 5481e7796b
7 changed files with 63 additions and 32 deletions

View File

@@ -270,7 +270,6 @@ class RecordProcessor(object):
patch_sets = record.get('patchSets', [])
review['updated_on'] = review['date']
review['patch_count'] = len(patch_sets)
if patch_sets:
patch = patch_sets[-1]
if 'approvals' in patch: