Skip to content

Broaden DynamoDB failed-read seeding and deduplicate insertions by seedKey - #1965

Open
aschenzle wants to merge 1 commit into
fix/ddb-attribute-format-conversionsfrom
feat/ddb-more-seeding
Open

aschenzle wants to merge 1 commit into
fix/ddb-attribute-format-conversionsfrom
feat/ddb-more-seeding

Conversation

@aschenzle

Copy link
Copy Markdown
Collaborator

This greatly improve the insertions performance as many of the SUTs contained complicated queries gating the access to more lines of code.

@aschenzle
aschenzle added this pull request to stack #1966 November 28, 2026 16:47
@aschenzle
aschenzle requested a review from jgaleotti November 28, 2026 16:47
@aschenzle
aschenzle removed this pull request from stack #1966 December 2, 2026 06:50
@aschenzle
aschenzle force-pushed the feat/ddb-more-seeding branch from 0390e7d to 4557844 Compare December 2, 2026 06:56
@aschenzle
aschenzle added this pull request to stack #1960 December 2, 2026 07:00
missingKeys.forEach { it.gene.randomize(randomness, false) }

return DynamoDbAction(tableName, attributes + missingKeys)
return DynamoDbAction(tableName, attributes + missingKeys, seedKey)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is a seedKey?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the key that we "seed" by inferring the values from the failed query. I can rename to insertionKey to keep it consistent with other parts of the code, it will impact only one or 2 of the PRs as this one is close the end of the chain. Option 2 is just adding more comments to make it clear. Press 1 for rename or 2 for comments.

@aschenzle
aschenzle force-pushed the feat/ddb-more-seeding branch from 4557844 to b93c3f3 Compare December 4, 2026 04:45
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