-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(indexer): Moar cache #244
Conversation
8851100
to
2ea7976
Compare
Would adding one more cache for |
Codecov Report
@@ Coverage Diff @@
## main #244 +/- ##
==========================================
- Coverage 58.12% 57.87% -0.25%
==========================================
Files 25 26 +1
Lines 2985 3174 +189
==========================================
+ Hits 1735 1837 +102
- Misses 1069 1148 +79
- Partials 181 189 +8
Continue to review full report at Codecov.
|
2ea7976
to
58be80a
Compare
In theory, yes. In practice, it depends on the access patterns, and how much work we want to put into it. The API doesn't help here, because My current inclination here is to wait till we have metrics on how often this is used, and what the requests look like. If requests like |
a364640
to
60bb9ee
Compare
This auguments the block cache update/eviction routines to maintain a map of block number to logs vector, and services requests from the cache iff the entire response is present in the cache.
60bb9ee
to
f7fc08e
Compare
No description provided.