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

Memstore tracking of interior deletes improved. #2752

Merged
merged 2 commits into from Dec 21, 2021
Merged

Conversation

derekcollison
Copy link
Member

Memory store tracked interior deletes for stream state, but under KV semantics this could be a very large state to maintain.

In looking into memory usage we discovered it was actually faster to not track at all and generate on the fly.
And this also saves quite a bit of memory in edge cases.

Signed-off-by: Derek Collison derek@nats.io

/cc @nats-io/core

…t of snapshot

Signed-off-by: Derek Collison <derek@nats.io>
…semantics this could be very large.

Actually faster to not track at all and generate on the fly. Saves lots of memory too.

When we update the stream state to include runs, etc will update this as well.

Signed-off-by: Derek Collison <derek@nats.io>
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 0968a94 into main Dec 21, 2021
@derekcollison derekcollison deleted the memstore_lid branch December 21, 2021 02:06
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