Populate count of associated entities of multiple entities. #11788
Unanswered
whataboutpereira
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I've a bunch of entities that have extra lazy associations. I'm looking for the most efficient way to load the associated entity count.
Right now I've resorted to having a separate query in the actual item repository.
Is it possible to somehow prime the items counts when getting the owners in the owner repository via query builder?
Right now it seems possibly to only get the whole data for items, but ideally would only need to get the count.
Later would ideally like to get the items count for each owner without a separate query.
Beta Was this translation helpful? Give feedback.
All reactions