mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-25 05:49:06 +01:00
Update sql_store.go
This commit is contained in:
@@ -951,9 +951,10 @@ func NewMysqlStore(ctx context.Context, dsn string, metrics telemetry.AppMetrics
|
|||||||
|
|
||||||
func getGormConfig() *gorm.Config {
|
func getGormConfig() *gorm.Config {
|
||||||
return &gorm.Config{
|
return &gorm.Config{
|
||||||
Logger: logger.Default.LogMode(logger.Silent),
|
Logger: logger.Default.LogMode(logger.Silent),
|
||||||
CreateBatchSize: 400,
|
CreateBatchSize: 400,
|
||||||
PrepareStmt: true,
|
PrepareStmt: true,
|
||||||
|
SkipDefaultTransaction: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user