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

tbc: fix bug in keystone database and bring back performance #394

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

marcopeereboom
Copy link
Contributor

@marcopeereboom marcopeereboom commented Feb 5, 2025

Summary
Fix a serious bug in the keystone indexer that kept growing the keystone database.

Changes
While here, kill the very expensive database flush that slowed us down drastically. Also dedup vast amounts of code in crawler.

@marcopeereboom marcopeereboom added type: enhancement This improves existing functionality size: S This change is small (+/- <80) area: tbc This is a change to TBC (Tiny Bitcoin) labels Feb 5, 2025
@marcopeereboom marcopeereboom requested a review from a team as a code owner February 5, 2025 12:56
We can estimate pretty accurately which transactions need a compaction
and which don't. The issue at hand is that very small transactions may
not flush quickly enough leading to reading of stale data.

This may need some additional tinkering but try this for the time being.
@marcopeereboom marcopeereboom changed the title tbc: add a cache strategy for trasnaction flushes tbc: add a cache strategy for transaction flushes Feb 13, 2025
@marcopeereboom marcopeereboom changed the title tbc: add a cache strategy for transaction flushes tbc: Fix bug in keystone database and bring back performance. Feb 13, 2025
@joshuasing joshuasing changed the title tbc: Fix bug in keystone database and bring back performance. tbc: fix bug in keystone database and bring back performance Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tbc This is a change to TBC (Tiny Bitcoin) size: S This change is small (+/- <80) type: enhancement This improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants