Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Precomputed hashx status #17

Merged
merged 7 commits into from
Apr 7, 2022
Merged

Precomputed hashx status #17

merged 7 commits into from
Apr 7, 2022

Conversation

jackrobison
Copy link
Member

@jackrobison jackrobison commented Apr 5, 2022

fixes #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.

@jackrobison jackrobison added area: scribe type: new feature New functionality that does not exist yet labels Apr 5, 2022
@jackrobison jackrobison force-pushed the precomputed-hashx-status branch from dac5279 to e535bc6 Compare April 5, 2022 19:20
@jackrobison jackrobison linked an issue Apr 5, 2022 that may be closed by this pull request
@jackrobison jackrobison force-pushed the precomputed-hashx-status branch from bf2eba0 to 8a2517a Compare April 5, 2022 21:29
@jackrobison jackrobison merged commit 311db52 into master Apr 7, 2022
@jackrobison jackrobison deleted the precomputed-hashx-status branch April 7, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: database area: scribe type: new feature New functionality that does not exist yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Address subscriptions are slow for addresses with large histories
1 participant