Skip to content

Conversation

@rhnvrm
Copy link
Member

@rhnvrm rhnvrm commented Sep 15, 2025

Summary

  • Optimize DelGroup method in stores/goredis/redis.go to use single Redis DEL command
  • Instead of sending multiple individual DEL commands in a pipeline, collect all keys and send a single DEL command with multiple keys
  • Reduces network overhead and improves performance for bulk deletions

Test plan

  • Verify DelGroup method works correctly with single group
  • Verify DelGroup method works correctly with multiple groups
  • Verify empty groups case returns nil error
  • Verify Redis DEL command receives all keys in single call

Fixes #18

Instead of sending multiple individual DEL commands in a pipeline,
collect all keys and send a single DEL command with multiple keys.
This reduces network overhead and improves performance for bulk deletions.

Fixes #18
@rhnvrm rhnvrm requested a review from vividvilla September 15, 2025 03:38
@knadh knadh merged commit 7f984b0 into master Sep 15, 2025
0 of 4 checks passed
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.

Reduce redis ops in Goredis DelGroup implementation

3 participants