-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add transactions cache #2283
Add transactions cache #2283
Conversation
15ed540
to
35d19cd
Compare
Pull Request Test Coverage Report for Build 3d7d7366-a31e-43db-bf88-045833e0f752
💛 - Coveralls |
@@ -6,6 +6,13 @@ defmodule BlockScoutWeb.TransactionControllerTest do | |||
|
|||
alias Explorer.Chain.Transaction | |||
|
|||
setup do | |||
Supervisor.terminate_child(Explorer.Supervisor, {ConCache, :transactions}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add it to DataCase
instead of adding to all test files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayrat555 not really, being these BlockScoutWeb
tests they don't use Explorer.DataCase
.
However they use BlockScoutWeb.FeatureCase
and BlockScoutWeb.ConnCase
, so I put the restart in their setup and it seems to be working.
7d0ca90
to
2d25026
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one comment. lgtm
2d25026
to
18e5c76
Compare
@pasqu4le |
Problem: due to the unsatisfying performance of the main page some ETS-based cache has been deemed necessary. In this particular case one for the most recent collated transactions. Solution: implementation of said transactions cache
7d4f1a1
to
bef66e8
Compare
Closes #2250
Checklist for your PR
CHANGELOG.md
with this PR