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

[IMPROVED] Memstore NumPending() and checkInterestState. #5476

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

derekcollison
Copy link
Member

Optimize NumPending for memstore when large number of interior deletes are present.
Also as we periodically check interest state for interest policy streams and consumers, if we have zero ack consumers do not hold stream lock while checking.

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

@derekcollison derekcollison requested a review from a team as a code owner June 2, 2024 22:48
Copy link
Member

@wallyqs wallyqs 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 f405dcd into main Jun 3, 2024
4 checks passed
@derekcollison derekcollison deleted the mem-num-pending branch June 3, 2024 00:15
wallyqs pushed a commit that referenced this pull request Jun 5, 2024
Optimize NumPending for memstore when large number of interior deletes
are present.
Also as we periodically check interest state for interest policy streams
and consumers, if we have zero ack consumers do not hold stream lock
while checking.

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

---------

Signed-off-by: Derek Collison <derek@nats.io>
wallyqs added a commit that referenced this pull request Jun 5, 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