Skip to content
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

Limit and Offset in 1:N Relationship #310

Open
Shivam010 opened this issue May 6, 2019 · 0 comments
Open

Limit and Offset in 1:N Relationship #310

Shivam010 opened this issue May 6, 2019 · 0 comments

Comments

@Shivam010
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant