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

chore: Only keep latest per pid in DynamoDbOffsetStore bySliceSorted #1257

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

patriknw
Copy link
Member

Follow up to #1247

Less memory usage

if (r.seqNr > existingRecord.seqNr)
acc.copy(
byPid = acc.byPid.updated(r.pid, r),
bySliceSorted = acc.bySliceSorted.updated(r.slice, sorted - existingRecord + r),
Copy link
Member Author

Choose a reason for hiding this comment

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

this - existingRecord is the change

@patriknw patriknw merged commit 81a35c4 into main Nov 20, 2024
21 of 22 checks passed
@patriknw patriknw deleted the wip-keep-latest-patriknw branch November 20, 2024 12:53
@patriknw patriknw added this to the 1.6.3 milestone Nov 20, 2024
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