contacts: N+1 sequential contact_get calls on load #78
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos#78
Loading…
Add table
Add a link
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?
archipelago.rs:119-132(mount) and:229-240(post-save refetch) serially awaitcontact_get(sid)for every SID returned bycontact_list. 20 contacts = 20 sequential RPCs.Fix: parallelise with
futures::future::join_all, same as the messagingfetch_chats/fetch_messagesfix in #56.Follow-up (separate ticket): add a server-side
contact_list_all() -> [Contact]batch RPC so this drops to one round-trip.