ascherbakoff commented on code in PR #6779:
URL: https://github.com/apache/ignite-3/pull/6779#discussion_r2533264155


##########
modules/client/src/main/java/org/apache/ignite/internal/client/table/ClientTable.java:
##########
@@ -762,16 +796,24 @@ private static <E> void reduceWithKeepOrder(List<E> agg, 
List<E> cur, List<Integ
         }
     }
 
-    <R, E> CompletableFuture<R> split(
-            Transaction tx,
+    <R, E> CompletableFuture<R> splitAndRun(
             Collection<E> keys,
-            BiFunction<Collection<E>, PartitionAwarenessProvider, 
CompletableFuture<R>> fun,
+            MapFunction<E, R> fun,
             @Nullable R initialValue,
             Reducer<R> reducer,
             BiFunction<ClientSchema, E, Integer> hashFunc
     ) {
-        assert tx != null;
+        return splitAndRun(keys, fun, initialValue, reducer, hashFunc, 
List.of());

Review Comment:
   This looks like unncessary overcomplication to me. 
   99.99% of time we will have full connectivity
   Moreover, splitting is always need to be performed - either server or client 
side. 
   Not sure how it can reduce performance.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to