Open pelhage opened 6 months ago
Querying workouts was taking an unexpectedly long time, so did a perf trace, saw that this code was the culprit:
Modified the code and re-ran my project and saw huge savings.
TBH not sure if this needs more extensive testing (are there unit tests?), but feedback is welcome.
BEFORE:
AFTER:
Fixes # (issue)
Please delete options that are not relevant.
Description
Querying workouts was taking an unexpectedly long time, so did a perf trace, saw that this code was the culprit:
Modified the code and re-ran my project and saw huge savings.
TBH not sure if this needs more extensive testing (are there unit tests?), but feedback is welcome.
BEFORE:
AFTER:
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Checklist: