File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def _serialize(self, row):
32
32
app .config .db .user = 'benchmarkdbuser'
33
33
app .config .db .password = 'benchmarkdbpass'
34
34
app .config .db .database = 'hello_world'
35
- app .config .db .pool_size = 10
35
+ app .config .db .pool_size = 16
36
36
37
37
db = Database (app )
38
38
db .define_models (World , Fortune )
Original file line number Diff line number Diff line change 1
- emmett [orjson ]>= 2.5.12 ,< 2.6 .0
2
- psycopg2-binary == 2.9.5
1
+ emmett [orjson ]>= 2.6.0 ,< 2.7 .0
2
+ psycopg2-binary == 2.9.9
Original file line number Diff line number Diff line change 1
1
import multiprocessing
2
2
3
- from emmett .server import run
3
+ from emmett_core .server import run
4
4
5
5
6
6
if __name__ == "__main__" :
7
- workers = round ( multiprocessing .cpu_count () / 2 )
7
+ workers = multiprocessing .cpu_count ()
8
8
9
9
run (
10
10
"rsgi" ,
You can’t perform that action at this time.
0 commit comments