Include in relations generating multiple queries instead of one join query #9344
Unanswered
nivruth-naka
asked this question in
Q&A
Replies: 1 comment
-
For anyone stopping by here in future, the discussion on this is moved here: #9345 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use the above filter in my Loopback project and noticing performance issues. Upon enabling debug logging for the loopback connector I noticed that the include relation is being queried separately sequentially after a separate main query is executed. My understanding from the docs was that it would be a single join query but instead I am seeing 11 queries (1 main query which returns 10 rows and 10 sequential queries for each result from the main query for the include relation part). Is this a bug? This is a one-one association and in my models I am using @hasOne and @belongsTo as well. Please assist.
Beta Was this translation helpful? Give feedback.
All reactions