瀏覽代碼

fasthttp: tune the maximum number of db connections

Aliaksandr Valialkin 9 年之前
父節點
當前提交
3e5e4b2d5e

+ 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 (