arana-db/kiwi

[ENHANCE] Incomplete block cache sharing implementation

Open

#143 创建于 2025年9月24日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (33 fork)auto 404
P1good first issue✏️ Feature

仓库指标

Star
 (57 star)
PR 合并指标
 (PR 指标待抓取)

描述

Feature Description

The current implementation of share_block_cache is broken:

  • No configuration parsing for share-block-cache option
  • When share_block_cache=true, no block cache is created (inverted logic)
  • Each RocksDB instance creates separate block caches instead of sharing one

When share-block-cache=yes:

  • Create a single global block cache shared across all RocksDB instances
  • All Column Families use the shared cache instead of individual ones

Motivation

  1. Memory efficiency (single shared cache vs multiple individual caches)
  2. Better cache hit rates across all instances
  3. Proper configuration support

Additional Context

No response

贡献者指南