Listing parent records with their related child records currently issues one query per parent instead of a single joined or batched query, which shows up clearly under load testing with larger datasets.
Fix: Use eager loading / a batched query for the relation instead of per-row lookups.
Listing parent records with their related child records currently issues one query per parent instead of a single joined or batched query, which shows up clearly under load testing with larger datasets.
Fix: Use eager loading / a batched query for the relation instead of per-row lookups.