Bug 1614023
| Summary: | Migrations linking jobs and miq_tasks could take long time when upgrading to 5.9 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Yuri Rudman <yrudman> | ||||||
| Component: | Appliance | Assignee: | Yuri Rudman <yrudman> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jaroslav Henner <jhenner> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 5.9.0 | CC: | abellott, dmetzger, jkrocil, obarenbo, simaishi, smallamp, yrudman | ||||||
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | ||||||
| Target Release: | 5.10.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | 5.10.0.11 | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1618808 (view as bug list) | Environment: | |||||||
| Last Closed: | 2019-02-12 16:53:05 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1618808 | ||||||||
| Attachments: |
|
||||||||
|
Description
Yuri Rudman
2018-08-08 20:22:29 UTC
PR to optimize migration: https://bugzilla.redhat.com/show_bug.cgi?id=1614023 PR to purge MiqTasks: https://github.com/ManageIQ/manageiq/pull/17727 Correct link to PR opytimizing migration: https://github.com/ManageIQ/manageiq-schema/pull/201 How to reproduce? This optimization applicable only to CFME version 5.7 and below. Database with pretty big jobs table should be used for db migration Created attachment 1497026 [details]
db with 1M jobs
I am unable to test this right now. I cannot update to 5.10 without problems and then do the migration. I am attaching the db with 1M jobs that I created on 5.7.4.3-1
Created attachment 1522423 [details]
db_dump
With this db (~1e6 jobs), created on CFME 5.8, the db:migrate took
real 0m14.290s
user 0m9.926s
sys 0m1.716s
|