Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVED] Last msg lookup (KV Get) when subject is a literal subject (…
…#4232) When messages were very small and the key space was very large the performance of last message gets in the store layer (both file and memory) would degrade. If the subject is literal we can optimize and avoid sequence scans that are needed when multiple subject states need to be considered. Signed-off-by: Derek Collison <derek@nats.io> Resolves #4221
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters