Update sql_store.go

This commit is contained in:
İsmail
2024-11-11 14:04:00 +03:00
parent 4e1f2d3427
commit 3100dfeba3

View File

@@ -951,9 +951,10 @@ func NewMysqlStore(ctx context.Context, dsn string, metrics telemetry.AppMetrics
func getGormConfig() *gorm.Config {
return &gorm.Config{
Logger: logger.Default.LogMode(logger.Silent),
CreateBatchSize: 400,
PrepareStmt: true,
Logger: logger.Default.LogMode(logger.Silent),
CreateBatchSize: 400,
PrepareStmt: true,
SkipDefaultTransaction: true,
}
}