doc/md: update eager-loading implementation details (#2707)

This commit is contained in:
Ariel Mashraki
2022-07-01 21:52:35 +03:00
committed by GitHub
parent 4a26cab734
commit aec59a3aa7

View File

@@ -113,8 +113,6 @@ Note that, only SQL dialects support this feature.
## Implementation
Since a query-builder can load more than one association, it's not possible to load them using one `JOIN` operation.
Therefore, `ent` executes additional queries for loading associations. One query for `M2O/O2M` and `O2O` edges, and
2 queries for loading `M2M` edges.
Note that, we expect to improve this in the next versions of `ent`.
Since an Ent query can eager-load more than one edge, it is not possible to load all associations in a single
`JOIN` operation. Therefore, Ent executes additional query to load each association. This expected to be optimized
in future versions.