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

Ledger block cache #4303

Merged
merged 2 commits into from
Sep 2, 2023
Merged

Ledger block cache #4303

merged 2 commits into from
Sep 2, 2023

Commits on Sep 2, 2023

  1. Ledger block cache

    This commit introduces an in-memory cache for the block storage of the ledger.
    It caches new blocks that are committed and assumes blocks are committed in-order and with consecutive sequences.
    
    The block iterators now attempt to retrieve the blocks from the cache if possible before going to the block storage.
    
    The intent is twofold:
    1) Speedup the block Deliver API by not doing disk I/O when clients (peers, orderers) fetch blocks.
    2) Reduce the impact of the deliver API from writing new blocks into the ledger.
    
    Signed-off-by: Yacov Manevich <yacov.manevich@ibm.com>
    yacovm committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    04840e7 View commit details
    Browse the repository at this point in the history
  2. Address comments from Manish

    Signed-off-by: Yacov Manevich <yacov.manevich@ibm.com>
    yacovm committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    ffcb97c View commit details
    Browse the repository at this point in the history