KamoCRM

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

PerformanceSecurityService
Shipped
11 மார்ச், 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing