-
-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory usage of metrics update tasks
Because the tasks iterated over large datasets (i.e. all projects, or all components of a project), the DataNucleus L1 cache kept growing. Prevent this from happening by evicting objects from the cache after every iteration. Also, because setting a `FetchGroup` on `Query` level doesn't overwrite the `FetchGroup` on `PersistenceManager` level, too many fields were being loaded. Use `ScopedCustomization` to overwrite the PM's `FetchGroup` when querying objects for metrics calculation. Signed-off-by: nscuro <[email protected]>
- Loading branch information
Showing
3 changed files
with
64 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters