From d738e95bcdc0bb003bda63b9d13e2d500d437c5c Mon Sep 17 00:00:00 2001 From: Asa <26807394+a01sa01to@users.noreply.github.com> Date: Sat, 25 Nov 2023 13:55:22 +0900 Subject: [PATCH] =?UTF-8?q?index=20=E3=81=B5=E3=82=84=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/main.go b/go/main.go index 3eb6751..32cacff 100644 --- a/go/main.go +++ b/go/main.go @@ -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 {