N+1, solvedEdgeDB solves the problems that ORMs exist to workaround. A comparison that speaks for itself: SELECT movie.title, ( SELECT avg(rating) FROM reviews WHERE movie_id = movie.id ) AS avg_rating, (SELECT array_agg(q.v) FROM (SELECT person.name AS v FROM actors INNER JOIN persons AS person ON (actors.person_id = person.id) WHERE actors.movie_id = movie.id ) AS q WHERE q.v IS NOT NULL ) AS ac
![EdgeDB | The next-gen database](https://cdn-ak-scissors.b.st-hatena.com/image/square/ca47b7fdd83f75c1400d199a9d951b5e9561c896/height=288;version=1;width=512/https%3A%2F%2Fwww.edgedb.com%2Flogos%2Ftw_card_intro.png)