whisper-money/app
Víctor Falcón 9a806c0565 perf(automation-rules): memoize rule set per user in applyRules
Bulk re-evaluation calls AutomationRuleService::applyRules() once per
transaction, and each call re-queried the user's entire rule set with its
labels — an N+1 that scaled with the number of transactions being
re-evaluated (the sibling ApplySingleAutomationRuleJob already loads the
rule once).

Memoize the rule collection per user for the lifetime of the service
instance, which is resolved fresh per job/request, so rules created after
it is built are intentionally not seen mid-run. Added a query-count test
asserting automation_rules is queried once regardless of transaction
count.
2026-07-03 13:24:17 +02:00
..
Actions fix(security): scope job-status cache keys to the owning user 2026-07-03 13:09:18 +02:00
Ai/Agents feat(ai): auto-categorize transactions with AI (behind flag) (#535) 2026-06-15 16:35:20 +02:00
Console/Commands fix: skip demo reset when demo account is disabled (#626) 2026-07-03 07:27:43 +00:00
Contracts feat(connections): manage which accounts a bank connection syncs (#558) 2026-06-18 16:22:49 +02:00
Enums feat(ai): learn from category corrections so the AI stops repeating the same mistake (#608) 2026-06-29 19:12:15 +02:00
Events Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
Exceptions/Banking fix(banking): skip inaccessible EnableBanking accounts instead of failing the connection (#559) 2026-06-19 08:59:05 +02:00
Features refactor(ai): remove AiConsentSettings feature flag (#619) 2026-07-01 09:47:55 +02:00
Http fix(automation-rules): re-check only_uncategorized at apply time 2026-07-03 13:22:36 +02:00
Jobs fix(automation-rules): re-check only_uncategorized at apply time 2026-07-03 13:22:36 +02:00
Listeners fix: stop double-dispatching transaction listeners (N+1 insert into jobs) (#620) 2026-07-02 13:26:45 +00:00
Mail feat(email): follow up after post-onboarding AI consent (#596) 2026-06-26 17:56:06 +00:00
Models feat(ai): dismissable AI consent banner that stops after the first decision (#617) 2026-07-01 07:26:36 +00:00
Notifications fix: verify email via signed link without requiring login (#490) 2026-06-05 10:01:32 +02:00
Policies refactor(policies): extract HandlesUserOwnership trait (#478) 2026-06-03 17:43:30 +02:00
Providers fix: stop double-dispatching transaction listeners (N+1 insert into jobs) (#620) 2026-07-02 13:26:45 +00:00
Rules feat: parent/child category tree (#474) 2026-06-03 19:30:12 +02:00
Services perf(automation-rules): memoize rule set per user in applyRules 2026-07-03 13:24:17 +02:00