Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reduce length holding read transaction open for in confirmation height processor #1954

Merged

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented May 4, 2019

Using #1947 it was found that the confirmation height processor can hold a read transaction open for several minutes when traversing very long account chains. This can have impacts on the database size as any writes cannot use the pages this is holding on to until the read has finished.

Added a generic test for reset/renew on the database as one didn't exist.

Made a slight optimization which mean that the sideband data was no longer needed when reading in the blocks on an account.

@wezrule wezrule added the quality improvements This item indicates the need for or supplies changes that improve maintainability label May 4, 2019
@wezrule wezrule added this to the V19.0 milestone May 4, 2019
@wezrule wezrule requested a review from cryptocode May 4, 2019 20:01
@wezrule wezrule self-assigned this May 4, 2019
@wezrule wezrule changed the title Reduce time holding read transaction open for when traversing long account chains Reduce length holding read transaction open for in confirmation height processor May 4, 2019
@wezrule wezrule merged commit 0c4fc6e into nanocurrency:master May 9, 2019
@wezrule wezrule deleted the reduce_conf_height_read_transation_times branch May 9, 2019 19:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants