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

Do not run MiqEventDefinitionSet.seed twice on every start-up #14725

Merged

Conversation

isimluk
Copy link
Member

@isimluk isimluk commented Apr 11, 2017

We do not need to run this twice. We have a mechanism to set dependencies between the seeds.

On my system, running 10.times { EvmDatabase.seed_last } gives

🍶 rows selects time %
Before ? ? 55s 100%
After -130 -130 51s 91%

We do not need to run this twice. We have a mechanism to set
dependencies between the seeds.

On my system, running `10.times { EvmDatabase.seed_last }` gives

:sake: | rows | selects | time |  %
------ | ---- | ------- | ---- | ---
Before |    ? |       ? |  55s | 100%
After  | -130 |    -130 |  51s |  91%
@isimluk isimluk force-pushed the do-not-run-MiqEventDefinitionSet.seed-twice branch from d6c17f3 to 82a3afd Compare April 11, 2017 12:21
@miq-bot
Copy link
Member

miq-bot commented Apr 11, 2017

Checked commit isimluk@82a3afd with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
3 files checked, 0 offenses detected
Everything looks good. 🍪

@kbrock
Copy link
Member

kbrock commented Apr 11, 2017

@isimluk you and @Ladas can get this into a graph for dependencies? ;)

@kbrock kbrock merged commit c995366 into ManageIQ:master Apr 11, 2017
@kbrock kbrock added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 11, 2017
@isimluk
Copy link
Member Author

isimluk commented Apr 12, 2017

I am afraid that refresh graph would take more CPU, memory and LOC to do the same job.

@isimluk
Copy link
Member Author

isimluk commented Apr 12, 2017

Labeling fine/yes as suggested yesterday by @Fryguy on pm.

@isimluk isimluk added fine/yes and removed fine/no labels Apr 12, 2017
@isimluk isimluk deleted the do-not-run-MiqEventDefinitionSet.seed-twice branch April 12, 2017 08:31
simaishi pushed a commit that referenced this pull request Apr 13, 2017
…et.seed-twice

Do not run MiqEventDefinitionSet.seed twice on every start-up
(cherry picked from commit c995366)
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit 679640f7bb697c94dd628f6abfb72dcefa5034c1
Author: Keenan Brock <[email protected]>
Date:   Tue Apr 11 17:33:02 2017 -0400

    Merge pull request #14725 from isimluk/do-not-run-MiqEventDefinitionSet.seed-twice
    
    Do not run MiqEventDefinitionSet.seed twice on every start-up
    (cherry picked from commit c9953662fff402328110ff554849a0db44f01be2)

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.

4 participants