Skip to content

Conversation

hkdeman
Copy link
Contributor

@hkdeman hkdeman commented Sep 10, 2025

Replace Redis KEYS command with SCAN to improve performance on large datasets.

The KEYS command can block the Redis server when dealing with many keys, while SCAN provides cursor-based iteration that is non-blocking.

Fixes #618

Generated with Claude Code

Replace Redis KEYS command with SCAN to improve performance on large datasets.
The KEYS command can block the Redis server when dealing with many keys,
while SCAN provides cursor-based iteration that is non-blocking.

Fixes #618

Co-authored-by: H <[email protected]>
Copy link

jazzberry-ai bot commented Sep 10, 2025

Bug Report

Name Severity Example test case Description
Race condition during SCAN Medium Modify keys (add/delete) in Redis while the GetStorageUnits function is running. The SCAN command, while non-blocking, can return inconsistent results if keys are added or removed during the scan. This can lead to missing or duplicate keys in the returned list of storage units. The patch doesn't address this race condition.

Comments? Email us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QUESTION/MISC] - Redis Performance Optimization

1 participant