Skip to content

Limit and Offset in 1:N Relationship #310

Open
@Shivam010

Description

@Shivam010

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions