Reduce database connnections required for routes::users::details #888
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#888
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
routes::users::detals()
requires manyDbConn
. Its function signature requires aDbConn
and threePlumeRocket
s, which hasDbConn
as a field. Additionally, otherDbConn
s 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.DbConn
fromPlumeRocket
as said at #797 and tried at #805FromId
s.ctx
argument offrom_id
,from_activity
andfrom_db
should be a database connection instead ofPlumeRocket
(definition ofFromId
trait itself need not change)SearchActor
(or remove dependency on database connection fromSearchActor
)routes::users::details()
as an actor's method, such that holdsDbPool
and retrievesDbConn
on demandKitaitiMakoto referenced this issue2021-01-30 13:32:32 +00:00