graphql-api-demo icon indicating copy to clipboard operation
graphql-api-demo copied to clipboard

Your demo is good, but how do you deal with the N + 1 problem?

Open liuxsen opened this issue 6 years ago • 4 comments

liuxsen avatar Jan 05 '19 07:01 liuxsen

Hey @liuxsen, I'd like to help you solve this problem but i'm not too sure exactly what you are referring to. Could you please provide a little more detail and i'll do my best to answer your question? 😄

jackrobertscott avatar Jan 09 '19 03:01 jackrobertscott

I think he's talking about the N+1 problem related to GraphQL resolver.

https://engineering.shopify.com/blogs/engineering/solving-the-n-1-problem-for-graphql-through-batching

You can solve this problem with caching and batching mechanism : https://github.com/facebook/dataloader

arialpew avatar Jan 28 '19 06:01 arialpew

i think this just a demo. need most thing with a project. so will you continue this repo?

liuxsen avatar Jan 28 '19 17:01 liuxsen

so will you continue this repo?

prinze77 avatar Oct 08 '19 19:10 prinze77