We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c291210 commit f10963bCopy full SHA for f10963b
frameworks/Python/blacksheep/app-socketify.py
@@ -12,10 +12,9 @@
12
READ_ROW_SQL = 'SELECT "id", "randomnumber" FROM "world" WHERE id = %s'
13
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=%s WHERE id=%s'
14
ADDITIONAL_ROW = [0, "Additional fortune added at request time."]
15
-MAX_CONNECTIONS = 200
16
CORE_COUNT = multiprocessing.cpu_count()
17
18
-MAX_POOL_SIZE = (MAX_CONNECTIONS // CORE_COUNT)
+MAX_POOL_SIZE = CORE_COUNT * 2
19
MIN_POOL_SIZE = max(1, MAX_POOL_SIZE // 2)
20
db_pool = None
21
0 commit comments