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 lottery views #1356

Merged
merged 4 commits into from
Dec 20, 2024
Merged

Optimize lottery views #1356

merged 4 commits into from
Dec 20, 2024

Conversation

moveson
Copy link
Collaborator

@moveson moveson commented Dec 20, 2024

We are seeing a number of n+1 queries coming from lottery views. Most of these are caused by division_ranking or service_detail not being included in active record queries.

This PR optimizes these views to reduce n+1 queries.

@moveson moveson merged commit 89d02f9 into master Dec 20, 2024
2 of 3 checks passed
@moveson moveson deleted the oveson/optimize-lottery-show-views branch December 20, 2024 21:55
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.

1 participant