-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[affiliation] Improve performance of affiliation jobs
The current algorithm was running unnecessary calls to 'find_individual_by_uuid' when the generic affiliation job was called. In other words, when the list of individuals to affiliate was all the individuals in the database. To improve it, we have followed the same approach we did with the matching recommendations. We get the full list of individuals with a direct query using Django's API. Signed-off-by: Santiago Dueñas <[email protected]>
- Loading branch information
Showing
3 changed files
with
64 additions
and
38 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
releases/unreleased/performance-on-affiliation-recommendations-improved.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Performance on affiliation recommendations improved | ||
category: performance | ||
author: Santiago Dueñas <[email protected]> | ||
issue: null | ||
notes: > | ||
We have improved the affiliation performance by | ||
one order of magnitude removing unnecessary queries | ||
to the database. |
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