You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-11-30] [Performance] Avoid repeated action scans when opening large expense reports #107296
Opening an expense report with many expenses can freeze the page for several seconds while it loads. The delay grows with the number of expenses.
getAllNonDeletedTransactions calls getIOUActionForTransactionID for each expense, scanning the report actions each time. Multiple callers run this work repeatedly as the report loads.
Reproduction and measurements
In Chrome, open a production build on staging with the cache cleared and 4× CPU slowdown.
Go to Spend > Reports and open a report containing 400 expenses.
Observe the page freezing while the report loads.
In five alternating runs, the report appeared after 664 ms and the page froze for 6.3 seconds on main. A proposed fix reduced these to 464 ms and 4.2 seconds, respectively, with the same API calls.
Proposed solution
Scan report actions once in getAllNonDeletedTransactions, retaining the first matching action for each expense as getIOUActionForTransactionID does, then look up each expense's action. Preserve existing behavior and verify large reports display all expenses and correct totals, including offline.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.52-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-11-30. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
twilight2294 commentedon Nov 18, 2026
Hello, please assign me to this issue 👋 https://expensify.slack.com/archives/C01GTK53T8Q/p1795026274662209
melvin-bot commentedon Nov 18, 2026
@roryabraham — to hire @twilight2294 on Upwork, add the External label so a job is created and the offer is sent automatically.
1 remaining item
melvin-bot commentedon Nov 23, 2026
@roryabraham @twilight2294
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.52-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
getAllNonDeletedTransactions#107294If no regressions arise, payment will be issued on 2026-11-30. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
expensify-chore-bot commentedon Nov 27, 2026
@twilight2294 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
expensify-chore-bot commentedon Nov 29, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)expensify-chore-bot commentedon Nov 29, 2026
Payment Summary
Resolving PRs:
Find expense actions in one pass in
getAllNonDeletedTransactions#107294Assignee: @twilight2294 requires payment (Needs manual offer from BZ)
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Dec 2, 2026
Matt's AI agent:
Will pay tomorrow, apologies for the delay
mallenexpensify commentedon Dec 2, 2026
Payment Summary
Contributor+: @twilight2294 due $175 via NewDot
@twilight2294 being added to NewDot payments, will leave open til they are
mallenexpensify commentedon Dec 3, 2026
Matt's AI agent:
Prep notes for the CM. This is not a payment approval. Do not request payment until the CM posts the final amount.
Ready.
Job price: $175.
Price basis: standard, no Help Wanted.
Perf PR, no checklist needed.
Your summary says NewDot and C+. Data.php says Upwork, and twilight2294 wrote the PR.
Next: pay. No Caps+Y.
Evidence
PAYPREP v1