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

Improve metadata update handling in repository_migration script. #387

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elioschmutz
Copy link
Member

We improve the performance and allow to have no blobs when indexing by patching the Catalog and only updating relevant metadata instead the full list of metadata.

The Catalog will always update all available metadata if reindexing an object with update_metadata enabled. There is no way to update only specific metadata values of an object. Updating metadata means, that all metadata will be recalcuated for an objects. This process takes a lot of time and is mostly unnecessary. In addition, it requires to have access to the blobs of documents because some of the metadata properties are relying on blob information (filesize). To speed up the migration and to be able to run the migration without the existence of blobs, we'll patch the catalog to only update the relevant metadata items.

@elioschmutz elioschmutz requested a review from a team March 25, 2024 13:13
@elioschmutz elioschmutz force-pushed the es/CA-6728-catalog-patch branch 3 times, most recently from 8458783 to f322c3d Compare March 28, 2024 14:22
@elioschmutz elioschmutz force-pushed the es/CA-6728-catalog-patch branch 3 times, most recently from feef797 to 1051159 Compare April 5, 2024 06:43
We improve the performance and allow the inexistence of blobs by patching the Catalog and only updating relevant metadata instead the full list of metadata
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