projects: N+1 sequential project_get calls on list load #87

Closed
opened 2026-04-20 12:22:10 +00:00 by zaelgohary · 0 comments
Member

project_service.rs:68-85 serially awaits project_get(sid) for every SID returned by project_list. With N projects = N sequential round-trips.

Fix: parallelise with futures::future::join_all, same pattern as contacts #78 and messaging #56 already use.

Follow-up: add a server-side project_list_all() -> [Project] batch RPC to drop it to one round-trip (separate ticket).

`project_service.rs:68-85` serially awaits `project_get(sid)` for every SID returned by `project_list`. With N projects = N sequential round-trips. Fix: parallelise with `futures::future::join_all`, same pattern as contacts #78 and messaging #56 already use. Follow-up: add a server-side `project_list_all() -> [Project]` batch RPC to drop it to one round-trip (separate ticket).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_archipelagos#87
No description provided.