Skip to content

Commit

Permalink
index ふやす
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to committed Nov 25, 2023
1 parent 735cd39 commit d738e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/main.go
Expand Up @@ -120,6 +120,8 @@ func initializeHandler(c echo.Context) error {

indexes := []string{
"CREATE INDEX `livestreams_user_id` ON `livestreams` (`user_id`)",
"CREATE INDEX `reservation_slots_duration_idx` ON `reservation_slots` (`start_at`, `end_at`)",
"CREATE INDEX `ng_user_livesteams_idx` ON `ng_words` (`user_id`, `livestream_id`)",
}
for _, index := range indexes {
if _, err := dbConn.Exec(index); err != nil {
Expand Down

0 comments on commit d738e95

Please sign in to comment.