Skip to content

Commit

Permalink
Add index on ATXs that makes epoch ATX requests faster (#5618)
Browse files Browse the repository at this point in the history
## Motivation

Based on #5591, it appears that epoch ATX SQL requests can be made faster by adding another index on ATXs
  • Loading branch information
ivan4th committed Feb 28, 2024
1 parent 8bc6e5e commit 432019e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/migrations/state/0014_atxs_extra_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- retrieve epoch info faster
CREATE INDEX atxs_by_epoch_id on atxs (epoch, id);

0 comments on commit 432019e

Please sign in to comment.