4 ms·
> Instead, you need to make separate parallel requests for those datapoints and let the dataloader be in charge of merging them into larger batches of requests
by haimez 6y ago
> Instead, you need to make separate parallel requests for those datapoints and let the dataloader be in charge of merging them into larger batches of requests for the db to fullfill.
> This can result in some additional latency on a request, but ultimately provides the best way to be able to scale things out.
I promise you, this is not the best way to scale things out.
- Aeolun 6y agoYou cannot make a statement like that and then not provide an alternative. Personally I think dataloader makes amazing use of Javascript async. There may be other ways to scale things out, but that doesn’t mean this one isn’t good.