diff --git a/internal/config/config.go b/internal/config/config.go index f377a8374..43c2a1817 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -266,8 +266,8 @@ func (c *Config) Workers() int { numCPU := runtime.NumCPU() // Limit number of workers when using SQLite to avoid database locking issues. - if c.DatabaseDriver() == SQLite && numCPU > 8 && c.params.Workers <= 0 { - return 8 + if c.DatabaseDriver() == SQLite && numCPU > 4 && c.params.Workers <= 0 { + return 4 } if c.params.Workers > 0 && c.params.Workers <= numCPU {