Limit and Offset in 1:N Relationship
Shivam010 opened this issue · 0 comments
Shivam010 commented
Hi,
I was trying to understand how Kallax handles Limit
and Offset
in 1:N
relationships but ended up very confused.
The documentation states that:
To avoid the N+1 problem with 1:N relationships, kallax performs batching in this case. So, a batch of users are retrieved from the database in a single query, then all the posts for those users and finally, they are merged...
But now, in this case, how Limit and Offset can be used in this case?
I just need to know how this is handled in Kallax?