Skip to content

Reduce redis roundtrips when loading Experiments#751

Merged
andrehjr merged 2 commits into
mainfrom
reduce-redis-roundtrips
Jul 25, 2026
Merged

Reduce redis roundtrips when loading Experiments#751
andrehjr merged 2 commits into
mainfrom
reduce-redis-roundtrips

Conversation

@andrehjr

Copy link
Copy Markdown
Member

Experiment.find (used on every ab_test/ab_finished)

Before: 5 redis hits
After: 1 single hit pipelined

This is based on the following:

  • Drop the redundant exists? roundtrip. If nothing is loaded, then the experiment does not exist.
  • Pipeline the experiment loading. Instead of making N separated calls, uses Pipelining to get it from a single time.

@andrehjr
andrehjr merged commit b046250 into main Jul 25, 2026
72 of 75 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.

1 participant