-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change write json files to disk strategy
We have written all files each time at each new block which accumulated to about 1 GB of data, this led to stability issues and very high disk IO for the explorer nodes. Now we write only the data of the new block. We also remove the deletion of all files at startup. The dao state is still written in a monolithic file so that cannot be optimized but we added a new directly where we add each block named by block height. Looking up the latest written file tells us our last persisted block. So all that data is equivalent to the monolithic daoState data which should be removed once the webapp devs have implemented the change to use the blocks directory.
- Loading branch information
Showing
9 changed files
with
199 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.