Skip to content

fix: remove extra redis calls#125

Open
ville wants to merge 1 commit intomasterfrom
fix/remove-extra-redis-calls
Open

fix: remove extra redis calls#125
ville wants to merge 1 commit intomasterfrom
fix/remove-extra-redis-calls

Conversation

@ville
Copy link

@ville ville commented Mar 24, 2026

Rationale

Removes extra Redis calls to reduce latency

Changes

  • cache server version
  • check the new hash name first

TODO

  • Update CHANGELOG.md

@ville ville self-assigned this Mar 24, 2026
@ville ville requested a review from Copilot March 24, 2026 11:19
@ville ville requested review from corva-alex-s and kossman March 24, 2026 11:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce Redis round-trips during cache migration by caching the Redis server version check and reordering existence checks to short-circuit earlier when the migrated hash already exists.

Changes:

  • Cache the Redis server version check to avoid repeated INFO calls.
  • Check for the new (migrated) hash first to skip legacy lookups when migration is already complete.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- cache server version
- check the new hash name first
@ville ville force-pushed the fix/remove-extra-redis-calls branch from d4fd16e to 7307267 Compare March 24, 2026 11:48
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.

4 participants