Add TopK Probabilistic Data Structure

Aperta
#3,176 8 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hidedim ci sta già lavorando.

Dal 24/10/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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!
Lingua principale
C++
Stelle
4.5k
Fork
686
Merge medio
2g 19h
PR unite (30g)
37

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/kvrocks

Tutte le issue di apache/kvrocks

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.