Skip to content

Commit 071ddf5

Browse files
authored
Merge pull request #120 from tire-fire/add-service-check-index
Add composite index on service_check_schemas (team_id, round_id)
2 parents 915bbe9 + 412db0d commit 071ddf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/db/servicechecks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
)
1111

1212
type ServiceCheckSchema struct {
13-
TeamID uint
14-
RoundID uint
13+
TeamID uint `gorm:"index:idx_team_round"`
14+
RoundID uint `gorm:"index:idx_team_round"`
1515
Round RoundSchema
1616
ServiceName string
1717
Points int

0 commit comments

Comments
 (0)