-
Notifications
You must be signed in to change notification settings - Fork 0
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
More search tx optimizations (internal_commands_aggregated
, zkapp_commands_aggregated
)
#63
Conversation
c52e919
to
52593dc
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.
It seems to be looking good!
Just some comments for further improvements:
- Would it produce meaningful performance improvements if we cache the
coinbase_receiver
andaccount_creation_fee
fields as well? - I see queries with the addresses are still taking some seconds. What's the impact (overhead, performance) of adding yet three other tables linking *_commands to accounts in them?
Thanks @joaosreis! I'll try your suggestions in separate PR. |
@joaosreis thanks again for suggestions, I've looked into them and put some notes below:
I tried to make
For that I've tried adding to
It actually doubles the size of the If you have any further thoughts or ideas please share. |
For the second suggestion, if we add an |
Follow up after #58.
Performance Test Results
mina-mesh serve
mina-mesh serve --use-search-tx-optimizations
(#58)mina-mesh serve --use-search-tx-optimizations
(this pr)"address":"B62qiburnzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzmp7r7UN6X", "limit":5000
"address":"B62qpXXYbzeZkXrpa3EuZcXgqFSsBsSWrrvi16GJnXLhaqELBSfbnGF"
"address":"B62qowpMhZ2Ww7b8xQxcK7rrpfsL5Nt5Yz5uxaizUBKqpeZUqBETa31","status":"applied","limit":100
"max_block":394837,"status":"failed","limit":1000
"transaction_identifier":{"hash":"5JvFj6DJh1dnMnLPki9ZnmgbxcgfNZCc6hRs8FhvVhaautt84EpY"}
"address":"B62qq3TQ8AP7MFYPVtMx5tZGF3kWLJukfwG1A1RGvaBW1jfTPTkDBW6","limit":500
"address":"B62qjwDWxjf4LtJ4YWJQDdTNPqZ69ZyeCzbpAFKN7EoZzYig5ZRz8JE","limit":500
Storage Overhead
The storage overhead with all additional tables: