Shopware & Plugin-Entwicklung
Shopware Eager Loading
N+1-Query-Problem vermeiden
Eager Loading in Shopware lädt benötigte Assoziationen in einem Query statt N+1 Einzelabfragen: $criteria->addAssociation("product.media") statt Lazy Loading im Template. Verhindert Performance-Killer bei Produktlisten und CMS-Seiten. DAL-Profiler zeigt Query-Count.