parent
ae0af699c6
commit
c466291405
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue