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
+66
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,66 @@ For example, let's assume you want to load users from a database, you could prob
286
286
// ...
287
287
```
288
288
289
+
### Returning a stream of results from your batch publisher
290
+
291
+
It may be that your batch loader function is a [Reactive Streams](https://www.reactive-streams.org/)[Publisher](https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/org/reactivestreams/Publisher.html), where values are emitted as an asynchronous stream.
292
+
293
+
For example, let's say you wanted to load many users from a service without forcing the service to load all
294
+
users into its memory (which may exert considerable pressure on it).
295
+
296
+
A `org.dataloader.BatchPublisher` may be used to load this data:
0 commit comments