Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Add Dataloader on a per-request chaching basis #58

Open
nikgraf opened this issue Oct 7, 2016 · 2 comments
Open

Add Dataloader on a per-request chaching basis #58

nikgraf opened this issue Oct 7, 2016 · 2 comments

Comments

@nikgraf
Copy link
Contributor

nikgraf commented Oct 7, 2016

No description provided.

@nikgraf nikgraf changed the title Add Dataloader Add Dataloader on a per-request chaching basis Oct 7, 2016
@sid88in
Copy link
Contributor

sid88in commented Sep 24, 2017

something to look at - prefetching dev.apollodata.com/react/prefetching.html

todo: research on prefetching and dataloader (same or totally different concepts)

@nikgraf
Copy link
Contributor Author

nikgraf commented Oct 16, 2017

It's quite different. Dataloader helps to avoid duplicated request

For example when fetching a list of projects with the author the author could be the same. Instead of doing 10 requests to fetch the author with dataloader we can make sure to fetch only one. In fact dataloader will fetch all the authors and properly inject them to the right project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants