-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat. optimalisere index på arena_events -> det mangler index på status
Det mangler index på status på arena-events tabellen. I tillegg så kan noen indexer fjernes fordi de ikke brukes lengre til oppslag.
- Loading branch information
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
src/main/resources/db/migration/V115__optimalisere_arena_event_index.sql
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,5 @@ | ||
DROP INDEX IF EXISTS arena_events_arena_op_time_idx; | ||
DROP INDEX IF EXISTS arena_events_arena_retry_count_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS arena_event_status_idx ON arena_event(status); | ||
CREATE INDEX IF NOT EXISTS arena_event_status_arena_table_idx ON arena_event(status, arena_table); |