cloudflare / cloudflare/workerskv.gui
Redis KEYS command is O(N) and blocking
- Dominant language
- Svelte
- Stars
- 315
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Hello, just saw your blog post and found it very insightful. I dove into the source to learn more and [this line caught my eye](https://github.com/cloudflare/workerskv.gui/blob/master/src-tauri/src/redis.rs#L135). The ["KEYS" command is a O(N) operation](https://redis.io/commands/KEYS) and, due to Redis' single thread, it will block all other connections.
I'd love to make a PR, but I do not know Rust so I'm not sure how long it will take me to complete. Any interest in a fix for this?
Contributor guide
Research direction
Start with src-tauri/src/redis.rs at line 135 and read the Redis KEYS command documentation linked in the issue. Determine how the key lookup should avoid a blocking O(N) operation, then verify that the Workers KV data explorer still retrieves the expected keys without blocking other Redis connections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- redis, rust
- Domain
- databases, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100