0.3.5
This release implements support for bounded parallelism, which can be significantly more efficient than unbounded parallelism.
You can use ZQuery.withParallelism
to specify the maximum number of fibers for concurrent operations. So you can do ZQuery.foreachPar(queries)(f).withParallelism(n)
to run a collection of queries with bounded parallelism. This is implemented in terms of ZIO's compositional parallelism so you can also control parallelism at a higher level of your application with the ZIO.withParallism
operators.
As always thank you for your support!