Skip to content

Commit

Permalink
[EASY] Settlement executions time range index (#3295)
Browse files Browse the repository at this point in the history
An additional index is required to extend a corresponding CI job
functionality([discussion](cowprotocol/infrastructure#2724 (comment))).
  • Loading branch information
squadgazzz authored Feb 27, 2025
1 parent ddf8931 commit 8a79b1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ outcome | text | nullable | outcome of the settlement execution

Indexes:
- PRIMARY KEY: btree(`auction_id`, `solver`)
- settlement\_executions\_time\_range\_index: btree(`start_timestamp`, `end_timestamp`)

### solver\_competitions

Expand Down
2 changes: 2 additions & 0 deletions database/sql/V081___settlement_executions_timestamp_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Improve performance for queries that filter by time range
CREATE INDEX settlement_executions_time_range_index ON settlement_executions (start_timestamp, end_timestamp);

0 comments on commit 8a79b1d

Please sign in to comment.