dataloader icon indicating copy to clipboard operation
dataloader copied to clipboard

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

Open barneylvlin opened this issue 5 years ago • 1 comments

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.

barneylvlin avatar Dec 09 '20 08:12 barneylvlin

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

nicksrandall avatar Jan 15 '21 17:01 nicksrandall