Precomputed hashx status #17

Merged
jackrobison merged 7 commits from precomputed-hashx-status into master 2022-04-07 18:06:18 +02:00
jackrobison commented 2022-04-05 20:12:44 +02:00 (Migrated from github.com)

fixes https://github.com/lbryio/scribe/issues/18

Adds the following column families:

  • HashXStatusPrefixRow: updated every block for all touched hashXs
  • HashXMempoolStatusPrefixRow: 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 the CACHE_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.

fixes https://github.com/lbryio/scribe/issues/18 Adds the following column families: - `HashXStatusPrefixRow`: updated every block for all touched hashXs - `HashXMempoolStatusPrefixRow`: 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 the `CACHE_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.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/hub#17
No description provided.