This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Use dataloader #38
Labels
Comments
Closing for now. |
Closed
Reopening this, it's not too complicated to get in and will really help offload the database. |
Note to self: article with examples of dataloader and Mongo at http://www.petecorey.com/blog/2017/08/14/batching-graphql-queries-with-dataloader/ |
Like #89 this makes sense when we have have types that refer to each other. |
This was referenced May 3, 2018
Busy getting my learn on, but wanted to save a link to this video by MPJ on dataloader |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Dataloader is a project from Facebook and allows removing pressure from the database: https://github.com/facebook/dataloader .
As per the README, it does not replace shared application level caches. It's meant to be used per request, and prevent multiple DB calls when one will do. See https://github.com/facebook/dataloader/blob/master/README.md.
Premature optimisation for now, but will come in handy when we are in need for performance improvements.
See https://github.com/withspectrum/spectrum/tree/alpha/api/loaders for a JS implementation.
The text was updated successfully, but these errors were encountered: