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

Stop generating vim_performance_tag_values rows #16692

Merged
merged 1 commit into from
Jan 2, 2018

Conversation

gtanzillo
Copy link
Member

This is a followup to #16582 where vim_performance_tags are generated on the fly instead of read from the table. Once that PR is merged, there will be no need to continue to generate and persist this tag values during performance processing.

This will eliminate huge database sizes that persisting this data causes. Once this is merged we should be able to removed the table altogether. That can be done in a different PR.

/cc @carbonin @Fryguy

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1510484
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1514505

@miq-bot
Copy link
Member

miq-bot commented Dec 19, 2017

Checked commit gtanzillo@266003d with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 0 offenses detected
Everything looks fine. 🍰

@gtanzillo gtanzillo changed the title [WIP] Stop generating vim_performance_tage_values rows Stop generating vim_performance_tage_values rows Jan 2, 2018
@gtanzillo gtanzillo changed the title Stop generating vim_performance_tage_values rows Stop generating vim_performance_tag_values rows Jan 2, 2018
@gtanzillo gtanzillo removed the wip label Jan 2, 2018
@@ -97,7 +97,6 @@ def perf_rollup(time, interval_name, time_profile = nil)
end

Benchmark.realtime_block(:db_update_perf) { perf.update_attributes(new_perf) }
Benchmark.realtime_block(:process_perfs_tag) { VimPerformanceTagValue.build_from_performance_record(perf) }
Copy link
Member

Choose a reason for hiding this comment

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

@kbrock You're going to like this one ;)

@gtanzillo gtanzillo force-pushed the dont-generate-tage-values branch from 266003d to a9e3455 Compare January 2, 2018 19:10
@jrafanie
Copy link
Member

jrafanie commented Jan 2, 2018

I like the direction this PR is going. 👍

@gtanzillo gtanzillo force-pushed the dont-generate-tage-values branch from a9e3455 to d0bc336 Compare January 2, 2018 19:17
@Fryguy Fryguy merged commit 2c1b7a4 into ManageIQ:master Jan 2, 2018
gtanzillo added a commit to gtanzillo/manageiq that referenced this pull request Jan 2, 2018
Follow up to ManageIQ#16692
This change removes all the code involved with reading vim_performance_tag_values
data from the table. It no longer necessary because it all generated on demand.
gtanzillo added a commit to gtanzillo/manageiq that referenced this pull request Jan 2, 2018
Follow up to ManageIQ#16692
This change removes all the code involved with reading vim_performance_tag_values
data from the table. It no longer necessary because it all generated on demand.
simaishi pushed a commit that referenced this pull request Jan 3, 2018
@simaishi
Copy link
Contributor

simaishi commented Jan 3, 2018

Gaprindashvili backport details:

$ git log -1
commit 14cda459997bb190811a61e93a933ad6a07fc6c7
Author: Jason Frey <[email protected]>
Date:   Tue Jan 2 14:54:51 2018 -0500

    Merge pull request #16692 from gtanzillo/dont-generate-tage-values
    
    Stop generating `vim_performance_tag_values` rows
    (cherry picked from commit 2c1b7a437241c1a8617ac8780795d06d5dd881fb)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1512705
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530713

@Fryguy Fryguy added this to the Sprint 77 Ending Jan 15, 2018 milestone Jan 3, 2018
gtanzillo added a commit to gtanzillo/manageiq that referenced this pull request Mar 15, 2018
Follow up to ManageIQ#16692
This change removes all the code involved with reading vim_performance_tag_values
data from the table. It no longer necessary because it all generated on demand.
gtanzillo added a commit to gtanzillo/manageiq that referenced this pull request Mar 15, 2018
Follow up to ManageIQ#16692
This change removes all the code involved with reading vim_performance_tag_values
data from the table. It no longer necessary because it all generated on demand.
JakubKubista pushed a commit to JakubKubista/manageiq that referenced this pull request Apr 12, 2018
Follow up to ManageIQ#16692
This change removes all the code involved with reading vim_performance_tag_values
data from the table. It no longer necessary because it all generated on demand.
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.

5 participants