DDC-3845: Add logger to track information how much time hydration of entities was spent and how many entities was hydrated #4710

Closed
opened 2026-01-22 14:48:07 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 23, 2015).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user debesha:

Maybe it worth to make a logger like Doctrine\DBAL\Logging which will track an information how much time was spent on a hydration of entities and how many entities were hydrated.

Because of lazy loading there could be hydrated a much more objects than it needed and it hard to track.

If a logger will be created, later in Symfony, for example, in doctrine/DoctrineBundle, it could be injected in Doctrine\ORM\Configuration and collected information might be displayed in a web profiler panel.

I've made a symfony bundle which implements the functionality - https://github.com/debesha/DoctrineProfileExtraBundle

Here https://github.com/debesha/DoctrineProfileExtraBundle/wiki I tried to explain why I think it is necessary.

If it will be considered to be worth to implement, I can make a coding myself and push it into hobodave/doctrine2.git

Originally created by @doctrinebot on GitHub (Jul 23, 2015). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user debesha: Maybe it worth to make a logger like Doctrine\DBAL\Logging which will track an information how much time was spent on a hydration of entities and how many entities were hydrated. Because of lazy loading there could be hydrated a much more objects than it needed and it hard to track. If a logger will be created, later in Symfony, for example, in doctrine/DoctrineBundle, it could be injected in Doctrine\ORM\Configuration and collected information might be displayed in a web profiler panel. I've made a symfony bundle which implements the functionality - https://github.com/debesha/DoctrineProfileExtraBundle Here https://github.com/debesha/DoctrineProfileExtraBundle/wiki I tried to explain why I think it is necessary. If it will be considered to be worth to implement, I can make a coding myself and push it into hobodave/doctrine2.git
admin added the Improvement label 2026-01-22 14:48:07 +01:00
admin closed this issue 2026-01-22 14:48:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4710