Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

You can disable caching if that's a problem for your application. But the idea is that DataLoader simply holds onto promises that requested an entity, and fires them all in batches according to a scheduler function. In Node.js, the default is to use scheduler magic (relies on how the event loop works).


Here's a small article that explains how the dataloader pattern works under the hood https://www.mikealche.com/software-development/advanced-prom...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: