DiceDB / dice

DiceDB is hyper-optimized for building and scaling truly real-time applications on modern hardware. It is a drop-in replacement for Redis with support for SQL-based reactivity.
https://dicedb.io/
Other
3.32k stars 420 forks source link

Use sync.Map for watching queries #171

Closed JyotinderSingh closed 1 month ago

JyotinderSingh commented 1 month ago

Refactor WatchList implementation using sync.Map for thread safety and performance improvements since we will read from this map more than we write to it (a client will likely subscribe to some queries once and then listen on them indefinitely)