Open kigawas opened 4 years ago
With use_connection_for_request=True and two DBs:
use_connection_for_request=True
db1.init_app(app) db2.init_app(app)
And in the fastapi router, query db1 and db2.
Then you'll see the server gets stuck.
I guess the problem is in _Middleware, when setting scope, one connection overrides another.
_Middleware
With
use_connection_for_request=True
and two DBs:And in the fastapi router, query db1 and db2.
Then you'll see the server gets stuck.