whisper-money/app/Http
Víctor Falcón 2208e38071 Batch net-worth balance lookups to kill the per-account N+1
DashboardAnalyticsController::calculateNetWorthAt ran one balance query per
account, and was called once per compared period, so the net-worth endpoint
issued ~2*N balance queries. It also re-fetched the account list on every call.

Fetch the accounts once and build a single BalanceLookup::forAccounts() over
the compared date range (the same batch loader already used by the balance
evolution endpoints), then read each balance from memory. Carry-forward
semantics match the previous 'latest balance on or before the date' query, so
results are unchanged; a query-count regression test locks the balance queries
to a fixed number regardless of account count.
2026-07-04 20:48:18 +02:00
..
Controllers Batch net-worth balance lookups to kill the per-account N+1 2026-07-04 20:48:18 +02:00
Middleware refactor(ai): remove AiConsentSettings feature flag (#619) 2026-07-01 09:47:55 +02:00
Requests feat(transactions): serve import dedup and account ledger from the backend (#631) 2026-07-03 16:49:59 +02:00
Responses fix: route new PWA guests to signup (#313) 2026-04-21 10:53:05 +01:00