8000 fix(backend): cache users active employment by c0rydoras · Pull Request #1648 · adfinis/timed · GitHub
[go: up one dir, main page]

Skip to content

fix(backend): cache users active employment - #1648

Open
c0rydoras wants to merge 1 commit into
adfinis:mainfrom
c0rydoras:fix/backend/perf/get-active-employment
Open

c0rydoras wants to merge 1 commit into
adfinis:mainfrom
c0rydoras:fix/backend/perf/get-active-employment

Conversation

@c0rydoras
Copy link
Copy Markdown
Collaborator

Also refactored .get_at(user=user,date=date.today()) to use user.get_active_employment() which is where the caching is done

closes #1647

Also refactored `.get_at(user=user,date=date.today())` to use `user.get_active_employment()` which is where the caching is done
@c0rydoras
c0rydoras requested a review from a team as a code owner December 4, 2026 17:35
@c0rydoras
Copy link
Copy Markdown
Collaborator Author

tests are failing because we now do less queries and they have assertions for hardcoded numbers of queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR]: cache employment on request.user or somewhere else

1 participant

0