Skip to content

Conversation

@yeqown
Copy link

@yeqown yeqown commented Sep 12, 2025

To achive the feature in natscli as nats-io/natscli#1486 described.

}
}

filterNextDirectly:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wont this still have the effect of sending to the client less than a page full of messages when some are filtered?

This method would need significant rewriting because it fetches a batch equal to page size, so when we skip one we also need to fetch one so that there is a page full of messages sent when we tell the client we sent a page full.

If the client says he wants 25 messages in a page he needs to get 25 even when 5 were filtered, not 20 and then told its a end of page.

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