You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,8 @@ consistent API over various back-ends and reduce message communication overhead
12
12
13
13
An important use case for `java-dataloader` is improving the efficiency of GraphQL query execution. Graphql fields
14
14
are resolved in a independent manner and with a true graph of objects, you may be fetching the same object many times.
15
-
A naive implementation of graphql data fetchers can easily lead to the dreaded "n+1" fetch problem.
16
15
17
-
There are many other use cases where you can also benefit from using this utility.
16
+
A naive implementation of graphql data fetchers can easily lead to the dreaded "n+1" fetch problem.
18
17
19
18
Most of the code is ported directly from Facebook's reference implementation, with one IMPORTANT adaptation to make
20
19
it work for Java 8. ([more on this below](manual-dispatching)).
@@ -132,9 +131,10 @@ In this case the `userLoader.dispatchAndJoin()` is used to make a dispatch call,
132
131
and then it repeats this until the data loader internal queue of keys is empty. At this point we have made 2 batched calls instead of the naive 4 calls we might have made if
133
132
we did not "batch" the calls to load data.
134
133
135
-
## Batching requires batch backing APIs
134
+
## Batching requires batched backing APIs
136
135
137
-
You will notice in our BatchLoader example that the backing service had the ability to get a list of users give a list of user ids in one call.
136
+
You will notice in our BatchLoader example that the backing service had the ability to get a list of users given
0 commit comments