This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(db): Try yet another storage log pruning approach (matter-labs#2268
) ## What ❔ Structures storage log pruning differently by first loading primary keys for the latest logs in the pruned block range, and then range-removing older logs based on these PKs. Both of these queries are designed to use particular indexes, making them have predictable performance. ## Why ❔ The current DB queries for storage log pruning sometimes use unpredictable indexes and have suboptimal performance. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`.
- Loading branch information
1 parent
0c7345d
commit 7c0a9fd
Showing
7 changed files
with
123 additions
and
102 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...lib/dal/.sqlx/query-327974ef6d0c7edf56339d310ec60cd2f3d5223add676591cb0577e0a77403cb.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...lib/dal/.sqlx/query-362e20c4c2527f1585132ca85316ba34fd131682ee5414a9d0ae2cab349b2395.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...lib/dal/.sqlx/query-4cff62fad4a7044a824a60656050e8a100140875f95cd8cf5de3c6202d59a19c.json
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...lib/dal/.sqlx/query-8c2f1f7bccc6af93714a74f732f94d8d631d56c5753f4e944f1cdf3e05b04a8c.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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