graph-gophers / dataloader

Implementation of Facebook's DataLoader in Golang
MIT License
1.21k stars 75 forks source link

documentation #24

Closed acornejo closed 7 years ago

acornejo commented 7 years ago

I got here after reading through the issues in neelance/graphql-go

It is not entirely clear to me how this would solve the n+1 request issue.

I.e. how can you use this to perform less database calls?

jagregory commented 7 years ago

It's worth reading the facebook/dataloader docs for an overview of what this library is trying to achieve.

In short, within a single HTTP request, every call to loader.Load will be batched up into one call to your batchFn function.

nicksrandall commented 7 years ago

@acornejo did you get the answers you were looking for? Do you mind if I close this issue?