-
Notifications
You must be signed in to change notification settings - Fork 295
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
RPC trace_block response speed #3780
Comments
@peekpi , can you add some metrics in the trace_block call to measure the time consumption? @hypnagonia , do you have an example of the rpc call using |
@LeoHChen
|
This query runs for a long time and it seems it has only 35 tx in the block. Do you know why it takes so long for the query to return all the data? @peekpi |
this is the trace result of the block: https://gist.github.com/peekpi/de46dbee349c3664dfbabe0b86c17d13 below are the statistics:
for a normal contract transaction, it has around 5-10 internal calls. but there are 16 txs that have 876 internal calls, trace these txs takes up most of the time.
|
@LeoHChen and I can store the trace result into DB to speed up the query, but this may cause high usage of disk. |
Hey team, we use
|
Summary
RPC trace_block response speed is slow. request takes ~1 second for a block with ~60 call txs. which is not enough for indexing apps.
fetching monthly data would take 2 weeks
Current Design
actual design is rerunning all tx calls in a block to get call traces
Problems
takes long time to form response
Proposal
cache when executes first time and never rerun
The text was updated successfully, but these errors were encountered: