Load receipts for room before acquiring lock #326

Closed
opened 2025-10-14 15:46:05 -06:00 by navan · 0 comments
Owner

Originally created by @ulyssa on 3/7/2024

In #205 I added a Need::MESSAGES for every room at startup, which locks up the UI for the first several seconds when there are enough joined rooms. This adds an upper limit on how many load plans we execute in parallel at a time, and moves the receipt loading for a room to be outside of the load_insert function. This reduces the demand on the lock enough that the UI remains responsive.

*Originally created by @ulyssa on 3/7/2024* In #205 I added a `Need::MESSAGES` for every room at startup, which locks up the UI for the first several seconds when there are enough joined rooms. This adds an upper limit on how many load plans we execute in parallel at a time, and moves the receipt loading for a room to be outside of the `load_insert` function. This reduces the demand on the lock enough that the UI remains responsive.
navan closed this issue 2025-10-14 15:46:05 -06:00
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: github/iamb#326
No description provided.