Skip to content
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

Performance improvement #6

Open
jrwbabylonlab opened this issue Oct 10, 2024 · 0 comments
Open

Performance improvement #6

jrwbabylonlab opened this issue Oct 10, 2024 · 0 comments
Assignees

Comments

@jrwbabylonlab
Copy link
Collaborator

jrwbabylonlab commented Oct 10, 2024

  • The bootstrap is querying block events one by one, we can improve the speed by utilising the goroutines by doing multiple queries at the same time
  • same db query being called multiple times within a single event execution. e.g GetBTCDelegationByStakingTxHash being called inside validateBTCDelegationInclusionProofReceivedEvent which then being called again
    by processBTCDelegationInclusionProofReceivedEvent. a recommendation is doing request level caching. i.e cache once per execution
@jrwbabylonlab jrwbabylonlab changed the title goroutine for bootstrap calls Performance improvement Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants