doctrine2 - Doctrine performance with hydration -
i having problem long execution times in php (10s) when using doctrine2 , wondering solution can applied.
i loading actor entity has 1:n relation features. loading 50 actors each having 20 features results in 1000 rows. problem seems doctrine hydration. doesn´t make big difference if using object or array hydration. in profiler can see main impact method gatherrowdata/hydraterowdata both called 13.141 times.
is solution use plain old mysql resultset , loop on array? if yes wondering sense makes use orm. can shed light on this. want have objects can accessed through methods getidentity() or hold business logic e.g. obtaining associated entities.
best regards christian
Comments
Post a Comment