-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the hydration time in the timeline #109
Comments
could be useful: |
I think such feature would be welcome addition, if hidden behind optional switch. Perhaps @debesha would be interested in contributing it here, so he doesn't have to maintain his own repository? |
Well, I think we should strive for having a clean extension point in the ORM to build this feature, rather than the bunch of hacks needed in DoctrineProfileExtraBundle. |
ORM folks probably wouldn't like performance impact this would have, even as just abstraction with empty implementation. Hydration is expensive. |
well, if they allow decorating hydrators in an official way, this could be a cost you pay only when the feature is used (and I think the additional cost will be small compared to the hydration itself). Currently, when looking at the webprofiler timeline panel, we see some timing for Doctrine, but this is really only the DBAL time. And when using Blackfire, I regularly see the hydration time being longer than the time spent executing the SQL query, so this is something important to show to users. |
Let's postpone until ORM has this option then. @stof is there an issue for this in ORM repository? |
Technically, there is an extension point: the HydratorFactory. It's not that easy to do but it can be done: new |
@alcaeus Unfortunately that's in ODM only |
That makes it a little more complicated 😅 |
Currently, the
doctrine
timing in the timeline panel is only the DBAL time. The ORM time should be tracked too (it may require adding some logging points in the ORM)The text was updated successfully, but these errors were encountered: