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

Deferred partial updates #116

Merged

Conversation

alexdunnjpl
Copy link
Contributor

@alexdunnjpl alexdunnjpl commented Apr 11, 2024

🗒️ Summary

Implements handling of case where non-aggregate product histories - which are generated by stateless iteration over registry-refs collection documents as implemented in #115 - are shared among collections having a different LID than the one nominally indicated by the first five chunks of the non-agg's LID.

If multiple updates are detected for a single nonaggegate product, all records subsequent to the first are shelved to disk, and are later merged with each other and the first, which is retrieved from the database (as it has already been written - this is ensured by a write buffer flush prior before processing of deferred records). After merging, the full history of the deferred nonaggregate products is yielded and written to the database.

⚙️ Test Data and/or Report

Functional tests updated and pass.
Manual testing in progress.

♻️ Related Issues

Fixes #114

@alexdunnjpl alexdunnjpl marked this pull request as ready for review April 11, 2024 19:12
@alexdunnjpl alexdunnjpl merged commit 7c4c1ed into collection-iteration-optimization Apr 14, 2024
1 check passed
@alexdunnjpl alexdunnjpl deleted the deferred-partial-updates branch April 14, 2024 16:50
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.

2 participants