Add TopK Probabilistic Data Structure

オープン
#3,176 コメント 8 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hidedim がすでに取り組んでいます。

2025年10月24日 から。

評価

この issue はまだ評価されていません。

説明

enhancement
Search before asking
  • I had searched in the issues and found no similar issues.
Motivation

Hello Kvrocks Team,

I would like to request support for the TopK probabilistic data structure (similar to the RedisBloom module in Redis) in Kvrocks.

TopK is widely used for tracking the most frequent items in a stream of data with fixed memory usage — for example, trending items, top searches, or heavy-hitters analytics. Redis already provides this functionality via the RedisBloom module, and having native TopK support in Kvrocks would make it more suitable for large-scale analytics workloads.

Feature expectations:

  • Commands: all the possible cmd from redis topk module
  • Approximate top-K tracking with configurable width, depth, and decay parameters
  • Persistent storage in the RocksDB backend

Thank you for considering this feature. Kvrocks already provides excellent Redis-compatible features, and TopK would complement its existing probabilistic data structures (like Bloom filters and Count-Min Sketch) very well.

Solution

Redis topK : https://redis.io/docs/latest/develop/data-types/probabilistic/top-k/

Are you willing to submit a PR?
  • I'm willing to submit a PR!
主要言語
C++
スター
4.5k
フォーク
686
平均マージ
2日 13時間
マージ済み PR(30日)
40

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/kvrocks のほかの issue

apache/kvrocks の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。