Comments (1)
Not sure if it can help, but you could consider to init the dataloader for each request then include it into the context of the request, rather than init the dataloader for the whole application. And in the last middleware of the request, you can call ClearAll for each dataloader to ensure you clean its memory.
from dataloader.
Related Issues (20)
- Metrics for cache hit rate etc. HOT 1
- Loader not batching properly HOT 4
- Tracing interface makes proper use of Links impossible HOT 2
- Non-memory cache and close context
- Question: why return a thunk? HOT 1
- Why is the return type of NewBatchFunc *Load[K,V]? HOT 1
- Passing query information to batch function? HOT 2
- How do dataloaders solve the 1-to-many relationship? HOT 1
- TestLoader/allows_clearAll_values_in_cache fails non-deterministically
- How to implement BigCache? HOT 1
- Can I use this with gqlgen? HOT 33
- What context is passed into batchFn? HOT 2
- Add generic support on next release? HOT 4
- Example with a database and graphql HOT 3
- Slice of Pointers (?)
- how to use redis as cache HOT 3
- expired DB certificate
- NoCache option doesn't seems to work in v6.0.0 HOT 3
- Preventing panic after cancelled context HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataloader.