@@ -38,7 +38,7 @@ public List<Result> bulkInsert(Collection collection, List<Tuple2<String, Object
3838
3939 // Emit error Results as part of the stream and collect at the end
4040 // This is thread-safe and avoids synchronization overhead
41- int concurrency = Math .min (documents .size (), 1000 );
41+ int concurrency = Math .min (documents .size (), 5000 );
4242 return Flux .fromIterable (documents )
4343 .flatMap (documentToInsert -> {
4444 String k = documentToInsert .getT1 ();
@@ -58,7 +58,7 @@ public List<Result> bulkUpsert(Collection collection, List<Tuple2<String, Object
5858
5959 // Emit error Results as part of the stream and collect at the end
6060 // This is thread-safe and avoids synchronization overhead
61- int concurrency = Math .min (documents .size (), 1000 );
61+ int concurrency = Math .min (documents .size (), 5000 );
6262 return Flux .fromIterable (documents )
6363 .flatMap (documentToInsert -> {
6464 String k = documentToInsert .getT1 ();
@@ -74,7 +74,7 @@ public List<Result> bulkUpsert(Collection collection, List<Tuple2<String, Object
7474
7575 public List <Tuple2 <String , Object >> bulkGets (Collection collection , List <Tuple2 <String , Object >> documents , GetOptions getOptions ) {
7676 final ReactiveCollection reactiveCollection = collection .reactive ();
77- int concurrency = Math .min (documents .size (), 1000 );
77+ int concurrency = Math .min (documents .size (), 5000 );
7878 List <Tuple2 <String , Object >> returnValue = Flux .fromIterable (documents )
7979 .flatMap (new Function <Tuple2 <String , Object >, Publisher <Tuple2 <String , Object >>>() {
8080 public Publisher <Tuple2 <String , Object >> apply (Tuple2 <String , Object > documentToInsert ) {
@@ -105,7 +105,7 @@ public List<Result> bulkDelete(Collection collection, List<String> keys, RemoveO
105105
106106 // Emit error Results as part of the stream and collect at the end
107107 // This is thread-safe and avoids synchronization overhead
108- int concurrency = Math .min (keys .size (), 1000 );
108+ int concurrency = Math .min (keys .size (), 5000 );
109109 return Flux .fromIterable (keys )
110110 .flatMap (key -> {
111111 return reactiveCollection .remove (key , removeOptions )
@@ -119,7 +119,7 @@ public List<Result> bulkDelete(Collection collection, List<String> keys, RemoveO
119119 public List <ConcurrentHashMap <String , Object >> bulkReplace (Collection collection , List <Tuple2 <String , Object >> documents ,
120120 ReplaceOptions replaceOptions ) {
121121 final ReactiveCollection reactiveCollection = collection .reactive ();
122- int concurrency = Math .min (documents .size (), 1000 );
122+ int concurrency = Math .min (documents .size (), 5000 );
123123 List <ConcurrentHashMap <String , Object >> returnValue = Flux .fromIterable (documents )
124124 .flatMap (new Function <Tuple2 <String , Object >, Publisher <ConcurrentHashMap <String , Object >>>() {
125125 public Publisher <ConcurrentHashMap <String , Object >> apply (Tuple2 <String , Object > documentToInsert ) {
@@ -153,7 +153,7 @@ public Mono<ConcurrentHashMap<String, Object>> apply(Throwable error) {
153153 public List <ConcurrentHashMap <String , Object >> bulkTouch (Collection collection , List <String > keys , final int exp ,
154154 TouchOptions touchOptions , Duration exp_duration ) {
155155 final ReactiveCollection reactiveCollection = collection .reactive ();
156- int concurrency = Math .min (keys .size (), 1000 );
156+ int concurrency = Math .min (keys .size (), 5000 );
157157 List <ConcurrentHashMap <String , Object >> returnValue = Flux .fromIterable (keys )
158158 .flatMap (new Function <String , Publisher <ConcurrentHashMap <String , Object >>>() {
159159 public Publisher <ConcurrentHashMap <String , Object >> apply (String key ){
0 commit comments