jkosh44 commented on issue #948: Investigate parallelizing TransactionImpl.readUnread() URL: https://github.com/apache/fluo/issues/948#issuecomment-544759928 Is this still valid? I was looking at `Map<RowColumn, Bytes> get(Collection<RowColumn> rowColumns)` and `get(Collection<Bytes> rows, Set<Column> columns)` as options but they don't have the `Consumer<Entry<Key, Value>> locksSeen` parameter. Another option would be something like the following, which just runs all the `getImpl` call concurrently. It's a little messy but I'd think of someway to clean it up. ``` List<CompletableFuture> reads = columnsToRead.entrySet() .stream() .map(entry -> CompletableFuture.runAsync(()->getImpl(entry.getKey(), entry.getValue(), locksSeen))) .collect(Collectors.toList()); return CompletableFuture.allOf(reads.toArray(new CompletableFuture[]{})).get(); ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
