Skip to content

Commit

Permalink
Merge pull request #2 from cureseven/enable-dynamic-placeholder
Browse files Browse the repository at this point in the history
動的プレースホルダを使ってmysql負荷を下げる
  • Loading branch information
cureseven authored Nov 25, 2023
2 parents 84d1150 + cb4f2e1 commit 98ed1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func connectDB(logger echo.Logger) (*sqlx.DB, error) {
conf.Passwd = "isucon"
conf.DBName = "isupipe"
conf.ParseTime = true
conf.InterpolateParams = true

if v, ok := os.LookupEnv(networkTypeEnvKey); ok {
conf.Net = v
Expand Down

0 comments on commit 98ed1f1

Please sign in to comment.