Re:A REST View of GraphQL
by xiaomai on Wednesday July 08, 2020 @11:54AM
(#23771089)
The n+1 problem is real but I do think dataloader is a very ergonomic solution. In a simple REST API using your ORM's preload functionality is even more ergonomic, but in more complex cases I've seen a lot of gnarly stuff like bulk-loading a bunch of data and then threading it down through many layers of function calls which definitely feels worse than the batched calls you make to avoid N+1's in gql.
[ Parent
| on HN ]
There are no comments on this comment yet.