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

貢獻者指南