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

> GraphQL N+1 issues are a thing of the past.

This one I will believe when I see it. It would be a general solution to cache invalidation.



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: