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

597 - Lorre performance improvements #620

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

piotrkosecki
Copy link
Contributor

resolves #597

I was performing a lot of testing and most of the delays come from Tezos node calls and the complexity of the operations we need to make to fill some tables.

For example fetching baking/endorsing rights takes soo long because it fetches them for whole page of blocks(500) using batched fetchers - changing concurrency level does not seem to matter, and inserts don't take a lot of time.

Regarding removing foreign keys/indexes unfortunately that only helps when inserting and affects query performance - accounts_checkpoint is not being queried at all so I introduced change suggested by @ivanopagano in the ticket.

Other possible change I've noticed is inserting voting rolls using single query instead of transactionally. That can improve performance a bit, but from what I've tested many times there was nothing to insert.

If anyone has any suggestions what else could be improved feel free to comment here or in the ticket #597.

Copy link
Contributor

@ivanopagano ivanopagano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far the changes look good.

I wonder if some form of semi-automated benchmark could help out finding bottlenecks and then focus on those...

@vishakh vishakh merged commit eb6df16 into master Nov 18, 2019
@anonymoussprocket anonymoussprocket deleted the feature/597-Lorre-performance-improvements branch December 11, 2019 04:17
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

Successfully merging this pull request may close these issues.

Examine Lorre for performance improvements
4 participants