Files
spring-data-mongodb/spring-data-mongodb
Mark Paluch fcc222244b Switch to Flux.flatMapSequential(…) to prevent backpressure shaping.
We now use Flux.flatMapSequential(…) instead of concatMap as concatMap reduces the request size to 1. The change in backpressure/request size reduces parallelism and impacts the batch size by fetching 2 documents instead of considering the actual backpressure.

flatMapSequential doesn't tamper the requested amount while retaining the sequence order.

Closes: #4543
Original Pull Request: #4550
2023-11-07 10:29:16 +01:00
..
2011-08-26 20:26:06 +02:00
2023-10-13 08:51:58 -07:00