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.
Ah, of course!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.