TECH REVOLUTION: DATABASE DOWNSIZED AND TRIE OPTIMIZED IN SWEEPING UPDATE!
Groundbreaking enhancements promise unprecedented performance improvements and data management efficiency for the @farcaster/hubble module.
Commit Details:
fix: Cleanup DB on destroy and reset TrieDB before catchupWithSnapshot (#1898) ## Motivation Cleanup the DB directory on destroy and also reset the trieDB when we attempt to catchup sync from snapshot ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [X] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [X] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [ ] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. - [X] All [commits have been signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits) <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving database cleanup and synchronization in the `@farcaster/hubble` module. ### Detailed summary - Increased `DEFAULT_CATCHUP_SYNC_SNAPSHOT_MESSAGE_LIMIT` to 10,000,000 - Added directory cleanup after destroying DB in `rocksdb.rs` - Improved handling of DB cleanup and synchronization in `hubble.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->