Reduce database connnections required for routes::users::details
routes::users::detals() requires many
DbConn. Its function signature requires a
DbConn and three
PlumeRockets, which has
DbConn as a field. Additionally, other
DbConns are retrieved in internal functions.
This occurs 503 error on proceeding, especially in the case of low database connection limit.
To fix this issue, we need to:
ExtractI gave up. See #889.
PlumeRocketas said at #797 and tried at #805
- Change method signature of implementations of
from_dbshould be a database connection instead of
FromIdtrait itself need not change)
- Share database pool with
SearchActor(or remove dependency on database connection from
- Extract thread worker tasks in
routes::users::details()as an actor's method, such that holds
Deleting a branch is permanent. It CANNOT be undone. Continue?