Skip to content

Commit fee4037

Browse files
authored
readme: improve comparision text description (#13)
1 parent 3d39954 commit fee4037

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,19 @@
1818
| [ManyToOneDeep](tests/EntityPreloadBlogManyHasOneDeepTest.php) | :red_circle: 1 + n + n | :green_circle: 3 | :orange_circle: 1, but<br>duplicate rows | :red_circle: 2 + n | :green_circle: 3 |
1919
| [ManyToMany](tests/EntityPreloadBlogManyHasManyTest.php) | :red_circle: 1 + n | :green_circle: 2 | :orange_circle: 1, but<br>duplicate rows | :red_circle: 1 + n | :green_circle: 2 |
2020

21-
Unlike manual preload does not require writing custom queries for each association.
21+
22+
### Comparison vs. Manual Preload
23+
24+
Unlike manual preload, the EntityPreloader does not require writing custom queries for each association.
25+
26+
### Comparison vs. Fetch Join
2227

2328
Unlike fetch joins, the EntityPreloader does not fetches duplicate data, which slows down both the query and the hydration process, except when necessary to prevent additional queries fired by Doctrine during hydration process.
2429

30+
The fetch join scales poorly with the number of associations. With every preloaded association, the number of duplicate rows grows. The EntityPreloader does not have this problem.
31+
32+
### Comparison vs. setFetchMode
33+
2534
Unlike `Doctrine\ORM\AbstractQuery::setFetchMode` it can
2635

2736
* preload nested associations

0 commit comments

Comments
 (0)