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-06-30] [No QA] Avoid building archived reports Set upfront when marking all messages as read #94168
MarkAllMessagesAsReadHandler used the useArchivedReportsIDSet hook, which subscribed to the entire REPORT_NAME_VALUE_PAIRS collection and eagerly rebuilt a full Set of archived report IDs on every collection change. That O(n) work ran continuously at startup even though the Set is only needed when the rare "mark all messages as read" keyboard shortcut fires (~6s impact on iOS for accounts with 100k reports).
Solution
The handler now subscribes directly via useOnyx(REPORT_NAME_VALUE_PAIRS) and passes the raw collection (through a ref) into markAllMessagesAsRead. The action checks isArchivedReport(reportNameValuePairs?.[key]) inline inside its existing report loop, keeping the archived check O(1) per report while eliminating the eager Set allocation and iteration.
changed the title [-][No QA] Avoid building archived reports Set upfront when marking all messages as read[/-][+][Due for payment 2026-06-30] [No QA] Avoid building archived reports Set upfront when marking all messages as read[/+]on Jun 23, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.17-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Activity
[-][No QA] Avoid building archived reports Set upfront when marking all messages as read[/-][+][Due for payment 2026-06-30] [No QA] Avoid building archived reports Set upfront when marking all messages as read[/+]melvin-bot commentedon Jun 23, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 23, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.17-3 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-06-30. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 29, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Jun 29, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
ZhenjaHorbach commentedon Jun 30, 2026
I think we don't need a checklist here
Since it's performance issue
mallenexpensify commentedon Jul 2, 2026
Payment Summary
Contributor+: @ZhenjaHorbach due $250 via NewDot
garrettmknight commentedon Jul 6, 2026
$250 approved for @ZhenjaHorbach