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

Fixes #37111 - use preloaded count #10866

Merged
merged 1 commit into from Feb 6, 2024
Merged

Fixes #37111 - use preloaded count #10866

merged 1 commit into from Feb 6, 2024

Conversation

sbernhard
Copy link
Member

@sbernhard sbernhard commented Jan 26, 2024

Use size instead of count which just reuse the preloaded data if already available. See https://www.speedshop.co/2019/01/10/three-activerecord-mistakes.html

Before
[root@or v2]# grep SELECT /tmp/cv_opt2.log | grep COUNT | wc -l
47

Afterwards:
[root@or v2]# grep SELECT /tmp/cv_opt2.log | grep COUNT | wc -l
27

(20 CVs)

@sbernhard
Copy link
Member Author

[test katello]

@sjha4 sjha4 merged commit 14b63bd into Katello:master Feb 6, 2024
5 of 6 checks passed
sbernhard added a commit to ATIX-AG/katello that referenced this pull request Feb 29, 2024
sbernhard added a commit to ATIX-AG/katello that referenced this pull request Mar 8, 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
2 participants