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

[PR #1466/f6c9d1e7 backport][0.17] optimization for x-repo search index builds #1469

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented May 25, 2023

This is a backport of PR #1466 as merged into main (f6c9d1e).

https://issues.redhat.com/browse/AAH-2337
https://issues.redhat.com/browse/AAH-2351
#1467

In the previous iteration of this code, ALL collection indexes would be rebuilt if at least one of their CVs were still in the repository version. This patch uses the .added and .removed functions to make a set of namespace(s).name(s) which have changed in the newest repository version. This set of namespace(s).names(s) can then be used to skip rebuilding the index for a collection which hasn't changed in some way.

Without the patch:
image

With the patch:
image

* Bypass re-indexing collections which have not changed in the new repo version.

fixes #1467

Signed-off-by: James Tanner <tanner.jc@gmail.com>
(cherry picked from commit f6c9d1e)
@gerrod3 gerrod3 merged commit efff78d into 0.17 May 25, 2023
14 checks passed
@gerrod3 gerrod3 deleted the patchback/backports/0.17/f6c9d1e7195443c61a70c64db7b5e2a7c5de033d/pr-1466 branch May 25, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants