Skip to content

Commit

Permalink
perf(db): Remove obsolete indexes (#1376)
Browse files Browse the repository at this point in the history
## What ❔

Migration that removes `transactions_contract_address_idx`,
`events_tx_initiator_address`

## Why ❔

They are not used

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
  • Loading branch information
perekopskiy committed Mar 7, 2024
1 parent 723232b commit 0afc377
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE INDEX IF NOT EXISTS events_tx_initiator_address_idx
ON events (tx_initiator_address);
CREATE INDEX IF NOT EXISTS transactions_contract_address_idx
ON transactions (contract_address);
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS transactions_contract_address_idx;
DROP INDEX IF EXISTS events_tx_initiator_address;

0 comments on commit 0afc377

Please sign in to comment.