Batch-load custom form data in getAllLeads (eliminate N+1)

PerformanceSecurityService
Shipped
March 11, 2026 at 6:48 PM UTC
Author
Kamo
Commit
3b08582

Replace per-lead getCustomFormDataForLead calls (N+1 queries) with a single batch load via getCustomFormDataForLeads, grouped by lead ID using a Map lookup when building the LeadDTO list.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing