Sfoglia il codice sorgente

Set idle connection pool size to 256.

No substantial benefit was observed to setting it higher, based on
local testing.
Rob Figueiredo 12 anni fa
parent
commit
0f0ba1cba9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      go/src/hello/hello.go

+ 1 - 1
go/src/hello/hello.go

@@ -35,7 +35,7 @@ const (
 	WorldUpdate        = "UPDATE World SET randomNumber = ? where id = ?"
 	FortuneSelect      = "SELECT id, message FROM Fortune;"
 	WorldRowCount      = 10000
-	MaxConnectionCount = 5000
+	MaxConnectionCount = 256
 )
 
 var (