Commit ab6231d
authored
chore: create base_token_ratios_ratio_timestamp_idx index (#3411)
## What ❔
This PR adds a migration that creates an index on `ratio_timestamp`
field of `base_token_ratios` table.
## Why ❔
Queries to this table are currently much heavier than they should be,
that has to be optimized.
## 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 `zkstack dev fmt` and `zkstack dev
lint`.1 parent f09087b commit ab6231d
File tree
2 files changed
+2
-0
lines changed- core/lib/dal/migrations
2 files changed
+2
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments