code: public static <INPUT extends Comparable<INPUT>> void executeLargeUpdates(Collection<INPUT> inputs, Consumer<List<INPUT>> consumer) {
      executeLargeUpdates(inputs, consumer, i -> i);
    }
docs: Partition by 1000 elements a list of input and execute a consumer on each part.
  
  The goal is to prevent issue with ORACLE when there's more than 1000 elements in a 'in ('X', 'Y', ...)'
  and with MsSQL when there's more than 2000 parameters in a query