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

endpoint GET /peer/blocks is a lot slower than v1 #1151

Closed
fix opened this issue Oct 18, 2018 · 1 comment
Closed

endpoint GET /peer/blocks is a lot slower than v1 #1151

fix opened this issue Oct 18, 2018 · 1 comment

Comments

@fix
Copy link
Contributor

fix commented Oct 18, 2018

Describe the bug
when nodes rebuilds rfom network they ping /peer/blocks to get blocks in a range.
on v2 this is slow because contrary to v1 it needs to join programatically 'blocks' and 'transactions' table

Possible solutions:

  • find faster way to join
  • stream from snapshoted data (since blocks are stored with transactions in the same table)
@kristjank kristjank modified the milestones: 2.0.0 mainnet, 2.1.0 Oct 24, 2018
@faustbrian faustbrian removed the backlog label Dec 4, 2018
@faustbrian faustbrian modified the milestones: 2.1.0, 2.6.0 Dec 19, 2018
@faustbrian faustbrian modified the milestones: 2.6.0, 2.7.0 Feb 19, 2019
@faustbrian
Copy link
Contributor

#2307

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

3 participants