You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package creates one query per item for hydrateMany, and that is very slow as it would do 50 separate queries for 50 items that you want to hydrate.
It should make one query for all entities and then just map the result to the entities you want to hydrate.
The text was updated successfully, but these errors were encountered:
@jspizziri Yes please do! That would've been a much better solution! Can't remember why I did each programatically! There's also an issue surrounding the calling to the database on the child->parent side that you might be able to resolve at the same time. The conditions I made seem to always favour the wrong relationship
jspizziri
added a commit
to 5-stones/typeorm-polymorphic
that referenced
this issue
Nov 21, 2023
This package creates one query per item for hydrateMany, and that is very slow as it would do 50 separate queries for 50 items that you want to hydrate.
It should make one query for all entities and then just map the result to the entities you want to hydrate.
The text was updated successfully, but these errors were encountered: