Precomputed hashx status #17
No reviewers
Labels
No labels
area: database
area: documentation
area: elasticsearch
area: herald
area: packaging
area: scribe
consider soon
critical
dependencies
good first issue
hacktoberfest
help wanted
improvement
needs: repro
new feature
priority: blocker
priority: high
priority: low
priority: medium
type: bug
type: bug-fix
type: discussion
type: feature request
type: improvement
type: new feature
type: refactor
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/hub#17
Loading…
Reference in a new issue
No description provided.
Delete branch "precomputed-hashx-status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixes https://github.com/lbryio/scribe/issues/18
Adds the following column families:
HashXStatusPrefixRow
: updated every block for all touched hashXsHashXMempoolStatusPrefixRow
: updated with every refresh of mempool for all of the newly touched hashXs, cleared upon new block.This requires a database migration, it takes about 2 hours currently and will run automatically on first run from a version 7 database. To make this as fast as possible, make sure you have ~20gb of memory to use and run
scribe
with theCACHE_ALL_TX_HASHES
setting on, without this setting ~4gb of ram is needed to migrate and it takes about 6 hours. The other services (scribe-hub and scribe-elastic-sync) don't need to be run while migrating, this saves on memory.After running the migration the cache_all_tx_hashes setting can be turned back off if desired.