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] Improved time to select skip list and starting sequence number for deliver last by subject #4712

Merged
merged 1 commit into from
Oct 26, 2023

Commits on Oct 26, 2023

  1. Improved time to select skip list and starting sequence number for de…

    …liver last by subject.
    
    Previously we would need to move through all msg blocks and load all of the blocks into memory.
    We optimized this regardless to flush the cache if we loaded it like other places in the code, but for this specifically we load subject's totals which is already in memory and for each matching subject we now simply load the last message for that subject and add the sequence number to the skip list.
    
    This drastically improves consumers that want last per subject, like KV watchers and object store lists.
    
    Signed-off-by: Derek Collison <[email protected]>
    derekcollison committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    a134ab8 View commit details
    Browse the repository at this point in the history