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

How do dataloaders solve the 1-to-many relationship? #71

Open
barneylvlin opened this issue Dec 9, 2020 · 1 comment
Open

How do dataloaders solve the 1-to-many relationship? #71

barneylvlin opened this issue Dec 9, 2020 · 1 comment

Comments

@barneylvlin
Copy link

We have two modules, one is the order and the other is the sub order. When querying the order list, you don't need to worry about the "n + 1" problem, but if you check the sub order according to the order list, there will be problems. For example, if a order corresponds to multiple sub orders, you need to query the sub order details once every time.

Now using dataloader cannot solve this 1-to-many relationship, because the data will be disordered.

@nicksrandall
Copy link
Member

I'm not sure I fully understand the issue. If you still have this question, could you please elaborate?

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

2 participants