Re:REST vs. GraphQL – A search for evidence on which is better
by tynorf on Tuesday December 15, 2020 @12:57PM
(#25432875)
I think the classic example is article list with author details. You load the articles (one query), then for each article you load its author (N queries). Naive use of an ORM causes this:
This can be avoided in ORMs providing prefetching (e.g. `Article.load(eager_load='author')`).
[ Parent
| on HN ]
There are no comments on this comment yet.