[PR #5427] [CLOSED] [WIP] Implement batch processing for transaction rules application to improve performance #5928

Closed
opened 2026-02-28 21:21:06 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5427
Author: @MatissJanis
Created: 7/30/2025
Status: Closed

Base: masterHead: matiss/ai-fix-5308


📝 Commits (2)

  • 968e65d Implement batch processing for transaction rules application to improve performance
  • 0947647 Add getRunningBalances option to useAccountPreviewTransactions hook

📊 Changes

5 files changed (+50 additions, -11 deletions)

View changed files

📝 packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx (+1 -0)
📝 packages/desktop-client/src/hooks/useAccountPreviewTransactions.ts (+13 -0)
📝 packages/desktop-client/src/hooks/usePreviewTransactions.ts (+18 -11)
📝 packages/loot-core/src/server/rules/app.ts (+12 -0)
upcoming-release-notes/5427.md (+6 -0)

📄 Description

Potential fix for https://github.com/actualbudget/actual/issues/5308

  • Replaced individual transaction calls with a batch processing method in usePreviewTransactions hook.
  • Added new 'rules-run-batch' method in the server to handle batch rule applications.

This is fully AI generated PR. AI found the perf issue and recommended the fix. It had no human input, so please do not merge this PR. Sending it only as a POC to check if it actually fixes the reported issue in https://github.com/actualbudget/actual/issues/5308


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5427 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 7/30/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `matiss/ai-fix-5308` --- ### 📝 Commits (2) - [`968e65d`](https://github.com/actualbudget/actual/commit/968e65d2c14dafcc2ccf9abf6c3368bef6b915cf) Implement batch processing for transaction rules application to improve performance - [`0947647`](https://github.com/actualbudget/actual/commit/0947647223f6ca758daad0209241235423f6c35c) Add getRunningBalances option to useAccountPreviewTransactions hook ### 📊 Changes **5 files changed** (+50 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx` (+1 -0) 📝 `packages/desktop-client/src/hooks/useAccountPreviewTransactions.ts` (+13 -0) 📝 `packages/desktop-client/src/hooks/usePreviewTransactions.ts` (+18 -11) 📝 `packages/loot-core/src/server/rules/app.ts` (+12 -0) ➕ `upcoming-release-notes/5427.md` (+6 -0) </details> ### 📄 Description Potential fix for https://github.com/actualbudget/actual/issues/5308 - Replaced individual transaction calls with a batch processing method in usePreviewTransactions hook. - Added new 'rules-run-batch' method in the server to handle batch rule applications. --- This is fully AI generated PR. AI found the perf issue and recommended the fix. It had no human input, so please do not merge this PR. Sending it only as a POC to check if it actually fixes the reported issue in https://github.com/actualbudget/actual/issues/5308 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:21:06 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5928