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

Reduce unnecessary db calls #2419

Merged
merged 12 commits into from
Jul 18, 2024
Merged

Reduce unnecessary db calls #2419

merged 12 commits into from
Jul 18, 2024

Conversation

vertism
Copy link
Contributor

@vertism vertism commented Jul 16, 2024

Description

The case history block on the case page was causing large amounts of DB calls. This has been improved by eager loading associations, and passing the user and team objects rather than an ID in places.

@vertism vertism marked this pull request as ready for review July 17, 2024 07:53
@vertism vertism requested review from a team as code owners July 17, 2024 07:53
Copy link
Contributor

@lucas-shaw lucas-shaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vertism vertism merged commit 7d4facf into main Jul 18, 2024
14 checks passed
@vertism vertism deleted the reduce-db-calls branch July 18, 2024 09:49
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.

2 participants