re: N+1 Queries, Batch Loading & Active Model Serializers in Rails VIEW POST


That is a great solution! I've never had the situation of loading related resources from a different database before, but if I ever do hopefully I remember this article!

Are there any other uses for the BatchLoader that you've come across?


Thanks. BatchLoader was made for essentially similar scenarios. However, I think it has greater utility with GraphQL where the n+1 hydra rears its head more frequently.

code of conduct - report abuse