Преглед на файлове

fasthttp: tune the maximum number of db connections

Aliaksandr Valialkin преди 9 години
родител
ревизия
3e5e4b2d5e
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      frameworks/Go/fasthttp-mysql/src/hello/hello.go
  2. 1 1
      frameworks/Go/fasthttp-postgresql/src/hello/hello.go

+ 1 - 1
frameworks/Go/fasthttp-mysql/src/hello/hello.go

@@ -38,7 +38,7 @@ type Fortune struct {
 const (
 	connectionString   = "benchmarkdbuser:benchmarkdbpass@tcp(localhost:3306)/hello_world"
 	worldRowCount      = 10000
-	maxConnectionCount = 256
+	maxConnectionCount = 40
 )
 
 var (

+ 1 - 1
frameworks/Go/fasthttp-postgresql/src/hello/hello.go

@@ -37,7 +37,7 @@ type Fortune struct {
 
 const (
 	worldRowCount      = 10000
-	maxConnectionCount = 256
+	maxConnectionCount = 40
 )
 
 var (