Repository navigation
feat: integrate chart storage optimization into orderbook v2.7.218 - #306
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The native Binance TradingView mirror opens a destination transaction for every stored record, including unchanged records. Orderbook v2.7.218 now includes a narrowly scoped writer that uses one real IndexedDB transaction per admitted mirror batch and skips equal records. Users keep the existing orderbook installer; there is no additional installation entry.
The hook starts in the top-level page at document-start and requires an exact match of the pinned native module before its first execution. Unsupported input and pre-transaction rejection preserve the original expression. A transaction failure aborts the batch, retires optimization and never replays uncertain writes. Ordinary saves, Basic settings, source reads, clear and financial operations retain their native paths. Stop drains accepted work. The complete orderbook also waits for creation of the HTML root before its DOM initializer, preserving early storage capture without the observed null-parent startup exception.
Validation:
This is page-scoped mirror-write optimization, not a Chrome-wide patch or a claim that all historic blank pages had one cause. Batch atomicity differs from native per-key writes; cross-database atomicity, newest-revision ordering and long-running stability are not promised. See docs/binance-chart-storage-development.md for the exact boundary and docs/binance-futures-blank-page-diagnosis.md for measured evidence.