Great article Colloque!
Just to add on this, after working with apollo graphql and dataloader. I figured that if you are using sequelize.js as an ORM. You can solve the N+1 problem using sequelize itself (using "separate" flag in one to many relationship), avoiding unnecessary code complexity.
Generally, dataloader is a great tool. I had performance gains from 3-4sec to 500-800ms in terms of api calls.
Great article Colloque!
Just to add on this, after working with apollo graphql and dataloader. I figured that if you are using sequelize.js as an ORM. You can solve the N+1 problem using sequelize itself (using "separate" flag in one to many relationship), avoiding unnecessary code complexity.
Generally, dataloader is a great tool. I had performance gains from 3-4sec to 500-800ms in terms of api calls.
Thanks for the comment Haseebsaeed! I have not used sequelize.js myself but I will sure look into it!