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

Optimize loading of group leaders in /groups endpoiont #212

Open
ErikBoesen opened this issue Oct 26, 2023 · 0 comments
Open

Optimize loading of group leaders in /groups endpoiont #212

ErikBoesen opened this issue Oct 26, 2023 · 0 comments

Comments

@ErikBoesen
Copy link
Collaborator

Under the API endpoint to get groups, we should make sure we're loading the leaders in the same request to speed up fetching. (It's not that slow right now, but always best to optimize.)

In Yale Menus, we do something like this to load a relationship at the same time:

        institution = Institution.query.options(joinedload(Institution.allergen_profile)).get(g.user.institution_id)
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

1 participant