forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(store): Batch save
Block
(cometbft#1755)
* batching in store * save only small blocks as 1 batch * add changelog * extract const * Update .changelog/unreleased/improvements/1755-batch-save-block.md Co-authored-by: Thane Thomson <connect@thanethomson.com> * simplify code * no need to panic on closing batch --------- Co-authored-by: werty144 <anton-paramonov2000@yandex.ru> Co-authored-by: Thane Thomson <connect@thanethomson.com>
- Loading branch information
1 parent
0bf3f0a
commit 30c9cde
Showing
3 changed files
with
65 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `[store]` Save block using a single DB batch if block is less than 640kB, otherwise each block part is saved individually | ||
([\#1755](https://github.com/cometbft/cometbft/pull/1755)) |
This file contains 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
This file contains 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