mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
pool size doesn't need to be that big
This commit is contained in:
parent
d9b1179717
commit
7692971b89
1 changed files with 2 additions and 1 deletions
|
@ -39,8 +39,9 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
|
|||
defer statsd.Close()
|
||||
|
||||
consumers := runtime.NumCPU() * multiplier
|
||||
poolSize := multiplier / 8
|
||||
|
||||
db, err := cmdutil.NewDatabasePool(ctx, multiplier)
|
||||
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue