-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reduce memory usage in archive file ingestion (#480)
Previously, when parsing and archive tsv to determine the canonical fork, we would always start at block 0, even if there was a rocksdb instance containing stacks chaindata. The entire fork was loaded in memory and inserted. Now, we start at the latest confirmed chaintip for this process, which greatly reduces the memory footprint on subsequent startups of the Chainhook service. Note: an initial run of the Chainhook service can still use significant memory.
- Loading branch information
1 parent
fc29be7
commit 83af58b
Showing
3 changed files
with
65 additions
and
13 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