Commit d566337
authored
bug(nimbus): Improve performance of NimbusExperiment.computed_enrollment_days (#14075)
Because:
- NimbusExperiment.computed_enrollment_days processes several change
logs in memory
this commit:
- moves all the sorting and filtering to the SQL query; and
- limits the amount of data returned to Python to only the needful.
Fixes #140741 parent 227e741 commit d566337
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
| 1053 | + | |
| 1054 | + | |
1056 | 1055 | | |
1057 | 1056 | | |
1058 | 1057 | | |
1059 | 1058 | | |
| 1059 | + | |
| 1060 | + | |
1060 | 1061 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1067 | 1067 | | |
1068 | | - | |
| 1068 | + | |
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| |||
0 commit comments