-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(stages): add RocksDB support for IndexAccountHistoryStage #21165
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
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
afff1e5
feat(stages): add RocksDB support for IndexAccountHistoryStage
yongkangc 0d34fab
feat(rocksdb): implement clear method for efficient table clearing
yongkangc 174b494
refactor(stages): extract history index loading into reusable utilities
yongkangc a9aaef4
refactor(stages): simplify account history loading by removing trait …
yongkangc 84a24e3
refactor(stages): use EitherWriter for account history loading
yongkangc 2885c3f
refactor: extract HistoryIndexWriter trait and fix review feedback
yongkangc 17e9247
fix: clippy and fmt issues
yongkangc e28384a
refactor: switch to closure-based approach with RefCell for load_hist…
yongkangc b982120
feat(stages): add RocksDB support for IndexAccountHistoryStage
yongkangc 8b98200
refactor: improve RocksDB clear semantics and shard flush logic
gakonst 25d8fe8
fix: type mismatch in delete_range_cf call
gakonst fa6ec8b
fix: add backticks to RocksDB in docstring for clippy::doc_markdown
gakonst b140e38
fix: restore original shard flush behavior to keep last chunk buffered
gakonst 40759b4
fix: use is_multiple_of per clippy::manual_is_multiple_of
gakonst 36616fa
chore: restore comments in load_history_indices
yongkangc 977aecf
docs: add inline comments to account history loader functions
yongkangc 461388e
feat(stages): add RocksDB unwind support for IndexAccountHistoryStage
yongkangc adec46d
Apply suggestion from @yongkangc
yongkangc f1a540f
Apply suggestion from @yongkangc
yongkangc f9a2910
Apply suggestion from @yongkangc
yongkangc 0d33a25
docs: add inline comments to account_history_shards function
yongkangc 297f094
test: add multi-shard unwind tests for account history
yongkangc 4bfa952
refactor: remove unused HashMap import in DatabaseProvider's HistoryW…
yongkangc 3041ed1
fix: handle block 0 unwind edge case and optimize RocksDB account his…
yongkangc d4a49ef
fix: resolve redundant_else clippy lint
yongkangc da97261
perf: optimize RocksDB account history unwind
yongkangc 9cbb74b
Delete DIFFERENTIAL_REVIEW_PR_21175.md
yongkangc 290c59d
fix(stages): fail fast when rocksdb config enabled but feature not co…
yongkangc fc5bba8
fix: conditionally import ProviderError for non-rocksdb builds
yongkangc e6b175a
chore: remove feature gate check from unwind per review
yongkangc 71f09ba
refactor: reduce #cfg annotations with helper patterns
yongkangc 78de393
refactor: move RocksDB account history unwind logic to RocksDBProvider
yongkangc 4a0f162
fix: clippy doc-markdown warnings
yongkangc 15de723
fix: clippy redundant_else and unused_unit warnings
yongkangc b04ed80
refactor: simplify RocksDB helpers by removing _if variants
yongkangc 14039f9
refactor: use with_rocksdb_batch trait method in stage
yongkangc 8f74032
chore: remove dead batch() stub method
yongkangc 9b80295
refactor: rename load_account_history_via_writer to load_account_history
yongkangc 1e86bd1
refactor: move RocksDB safety comment inside use_rocksdb branch
yongkangc ab3e275
refactor: simplify unwind_account_history_indices with else branch
yongkangc 0a63ee9
perf: use fixed range for RocksDB clear instead of seeking last key
yongkangc 7b2d1f3
fix: increase RocksDB clear range to 256 bytes and document batch.get…
yongkangc 3ebf3ea
Update crates/storage/provider/src/providers/rocksdb/provider.rs
joshieDo ffc9180
fix: restore deleted comment per review feedback
yongkangc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.