-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf: denormalize schema * group deletions in one file
- Loading branch information
1 parent
cb5cb6f
commit 96cf175
Showing
5 changed files
with
757 additions
and
162 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.sqlx/query-b1a9a8345fb0ebcef5de3c138cda24ddd8440c1ad365ec4594bdef2e3376319d.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
.sqlx/query-e295fe3cf4138c1dfd76fc7b4f5e72ab981229c036c46fb937cd6fc974af843d.json
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
WITH delete_blocks AS ( | ||
DELETE FROM blocks WHERE number > $1 | ||
), | ||
delete_account_slots AS ( | ||
DELETE FROM account_slots WHERE creation_block > $1 | ||
), | ||
delete_accounts AS ( | ||
DELETE FROM accounts WHERE creation_block > $1 | ||
), | ||
delete_historical_balances AS ( | ||
DELETE FROM historical_balances WHERE block_number > $1 | ||
), | ||
delete_historical_nonces AS ( | ||
DELETE FROM historical_nonces WHERE block_number > $1 | ||
), | ||
delete_historical_slots AS ( | ||
DELETE FROM historical_slots WHERE block_number > $1 | ||
), | ||
delete_logs AS ( | ||
DELETE FROM logs WHERE block_number > $1 | ||
), | ||
delete_topics AS ( | ||
DELETE FROM topics WHERE block_number > $1 | ||
) | ||
DELETE FROM transactions WHERE block_number > $1 |
Oops, something went wrong.