Browse Source
We now allow configuration of the find cursor/find publisher batch sizes using Query.cursorBatchSize(…). Configuring the batch size gives users more fine grained control over the fetch behavior especially in reactive usage scenarios as the batch size defaults in FindPublisher to the remaining demand. This can cause several roundtrips in cases the remaining demand is small and the emitted elements are dropped rapidly (e.g. using filter(…)). On the repository level @Meta allows now configuration of the cursor batch size for derived finder methods. interface PersonRepository extends Repository<Person, Long> { @Meta(cursorBatchSize = 100) Stream<Person> findAllByLastname(String lastname); } Original Pull Request: #575pull/577/head
10 changed files with 132 additions and 26 deletions
Loading…
Reference in new issue