mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc/md: update eager-loading implementation details (#2707)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user