-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use HMSET for batch Builder status store #373
Conversation
on initial sync from DB to Redis use HMSET instead of multiple HSET calls
That's great, thanks! Could you also apply that for writing known validators to Redis? These are 500k requests and takes a loooong time: mev-boost-relay/services/housekeeper/housekeeper.go Lines 207 to 235 in cfe9c9c
|
Codecov Report
π£ This organization is not using Codecovβs GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #373 +/- ##
==========================================
+ Coverage 19.92% 20.21% +0.29%
==========================================
Files 21 21
Lines 4056 4062 +6
==========================================
+ Hits 808 821 +13
+ Misses 3145 3137 -8
- Partials 103 104 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
probably also need to paginate that 500,000... |
Asking for a bit of patience, as we're working on other important PRs to get merged first (in particular #380) |
π Summary
Moving Builders status Redis initial sync from DB to use batch requests (HMSET) and not a request per builder (HSET).
Also added tests to cover this change.
β± Motivation and Context
following issue #204, this is one small step forward to using batch requests
β I have run these commands
make lint
make test-race
go mod tidy
CONTRIBUTING.md