mirror of
https://github.com/christianselig/apollo-backend
synced 2025-03-19 16:21:03 +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()
|
defer statsd.Close()
|
||||||
|
|
||||||
consumers := runtime.NumCPU() * multiplier
|
consumers := runtime.NumCPU() * multiplier
|
||||||
|
poolSize := multiplier / 8
|
||||||
|
|
||||||
db, err := cmdutil.NewDatabasePool(ctx, multiplier)
|
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue