Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] Optimise user data query #150

Open
skorekm opened this issue Sep 3, 2024 · 0 comments
Open

[BE] Optimise user data query #150

skorekm opened this issue Sep 3, 2024 · 0 comments
Assignees

Comments

@skorekm
Copy link
Collaborator

skorekm commented Sep 3, 2024

Currently in order to fetch all bands for either frontend or backend we have to:

  • get user id from auth.users
  • get user ladder_slug from user_ladder based on user id
  • get bands with associated data from band based on users ladder_slug

Would be nice to optimise number of queries somehow, maybe with some function, and ideally cache it.

@JakubKramp JakubKramp self-assigned this Sep 3, 2024
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

No branches or pull requests

2 participants