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

Don't lookup category names if tag tree view all #57

Merged
merged 1 commit into from Jan 4, 2017

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Jan 4, 2017

When building the tag tree in access control groups, the tag tree is not expandable. But building the node name (using category.name) executes a few hundred extra queries (20%).

This skips those queries.

Numbers are for small 5_7 db. numbers in larger DBS will increase for each tag and node in the db. They were timing out for me

ms queries query (ms) rows comments`
2,604.9 591 289.8 869 /ops/explorer before
2,591.2 471 225.9 749 /ops/explorer after
20% 22.0% 14%

This was executing a few hundred extra queries

category.name is the culprit

https://bugzilla.redhat.com/show_bug.cgi?id=1399345
@miq-bot
Copy link
Member

miq-bot commented Jan 4, 2017

Checked commit kbrock@0a4598a with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
1 file checked, 0 offenses detected
Everything looks good. ⭐

@mzazrivec mzazrivec self-assigned this Jan 4, 2017
@ZitaNemeckova
Copy link
Contributor

Tested in UI. LGTM 👍

@mzazrivec mzazrivec added this to the Sprint 52 Ending Jan 16, 2017 milestone Jan 4, 2017
@mzazrivec mzazrivec merged commit 34ad102 into ManageIQ:master Jan 4, 2017
@kbrock kbrock deleted the config_groups branch January 4, 2017 16:03
@kbrock
Copy link
Member Author

kbrock commented Jan 4, 2017

thanks Zita

@simaishi
Copy link
Contributor

Backported to Euwe via ManageIQ/manageiq#13308

@himdel
Copy link
Contributor

himdel commented Jan 12, 2017

@kbrock because of https://bugzilla.redhat.com/show_bug.cgi?id=1412441, I'm adding darga/yes, can you do a second backport please?

@simaishi
Copy link
Contributor

Backported to Darga via ManageIQ/manageiq#13475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants