From 98df8b62406f9d0f1215ffbedd14619194a6c48a Mon Sep 17 00:00:00 2001 From: AJ Date: Sun, 12 Oct 2025 10:08:47 -0400 Subject: [PATCH] Include Merchant relationship when loading transactions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure merchant data is eagerly loaded when querying transactions on the Transactions page to avoid N+1 queries. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- MoneyMap/Pages/Transactions.cshtml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MoneyMap/Pages/Transactions.cshtml.cs b/MoneyMap/Pages/Transactions.cshtml.cs index cc7f235..c2b351d 100644 --- a/MoneyMap/Pages/Transactions.cshtml.cs +++ b/MoneyMap/Pages/Transactions.cshtml.cs @@ -54,6 +54,7 @@ namespace MoneyMap.Pages .ThenInclude(c => c!.Account) .Include(t => t.Account) .Include(t => t.TransferToAccount) + .Include(t => t.Merchant) .AsQueryable(); // Apply filters