Improve blockchain.address.get_history performance #40
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#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "improve-history-cache"
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?
This updates the caching of address histories to match the pattern used in
scribe, which is much more performant. In addition to caching the final address histories, the tx_hash and heights are also cached in a smaller (but more items) cache that allows for a high hit rate on blocks containing transactions that touch many addresses (where each touched address has a fairly large history).Additionally, the history cache is now updated in place using a minimal set of batched lookups upon a new block instead of being cleared.