Skip to content

fix(set-head): query for specific version of the object in the index when verifying existence of the object version before setting head version #151

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

sgore-godaddy
Copy link
Contributor

@sgore-godaddy sgore-godaddy commented May 19, 2025

Summary

The issue was that the Dynamo DB query was querying for ALL objects by keyname in an env for checking existence of a version before setting head version. As the data in the tables grew the result does not return all of the version for an object (as it is paginated).

The change here is to query for a specific version of the object in the index when verifying that we have a matching version in the database, this will result in a small query result and will only return when a matching version is existing in the database.

Changelog

Test Plan

… when verifying existence of the object version before setting head version
@sgore-godaddy sgore-godaddy changed the title fix(set-head): query for speicific version of the object in the index when verifying existence of the object version before setting head version fix(set-head): query for specific version of the object in the index when verifying existence of the object version before setting head version May 19, 2025
@sgore-godaddy sgore-godaddy merged commit 897132c into godaddy:main May 27, 2025
1 check passed
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.

3 participants