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

Graph refresh refactoring internal indexes #16597

Merged

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented Dec 5, 2017

We are extending the local Db indexes to work for secondary indexes, for that, the structure of internal indexes is changing. This is a prerequisite for streaming refresh indexes, the places that need to change are capture in todos.

Ladas added 9 commits December 5, 2017 14:12
Initial indexes refactoring, moving indexing specific code
to the specific classes.
Rename indexes to Index::Type with Data and LocalDb
Todo for moving stringify_index_value
Abstract data_storage
Handle secondary indexes and reindexing
Openshift uses find on secondary index, so we need all indexes build
when adding data
@Ladas
Copy link
Contributor Author

Ladas commented Dec 5, 2017

@miq-bot assign @agrare
@miq-bot add_label enhancement

Ladas added 4 commits December 5, 2017 14:34
Remove :secondary_refs from IC interface
Fix rubocop issues
Remove solved todo about abstracting data storage
Assert we pass all keys for primary_index
@Ladas Ladas changed the title [WIP] Graph refresh refactoring internal indexes Graph refresh refactoring internal indexes Dec 5, 2017
@Ladas Ladas changed the title Graph refresh refactoring internal indexes [WIP] Graph refresh refactoring internal indexes Dec 5, 2017
Simplify selection condition
@miq-bot miq-bot changed the title [WIP] Graph refresh refactoring internal indexes Graph refresh refactoring internal indexes Dec 5, 2017
@miq-bot miq-bot removed the wip label Dec 5, 2017
@miq-bot
Copy link
Member

miq-bot commented Dec 5, 2017

Checked commits Ladas/manageiq@de4d1e7~...799e286 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
10 files checked, 0 offenses detected
Everything looks fine. 🍰

@Ladas
Copy link
Contributor Author

Ladas commented Dec 5, 2017

@agrare this is ready for review now, I've finished benchmarks on the big OpenShift VCRs we have, both saving and parsing time seems to be around the same numbers as before this.

Based on this, I can extend the indexes inside, to carry more information we will use also for streaming refresh. (removing TODOs adding by this PR in the process)

Also this passes OpenShift, OpenStack, Ovirt specs locally. I have a minor fix for AWS, discovered by the index_assert ManageIQ/manageiq-providers-amazon#375

@agrare agrare merged commit 8653f29 into ManageIQ:master Jan 26, 2018
@agrare agrare added this to the Sprint 78 Ending Jan 29, 2018 milestone Jan 26, 2018
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.

3 participants