This option is therefore ruled out. </p> <p><strong>2</strong>: The Executor function in Java has been used before in one of our applications to implement batch insertion. But the number of records does not exceed 50,000. We are asked to use a similar approach. Therefore, the use of Spring Batch is excluded. </p> <p>I'm looking for possible features to consider in Java 8/MySQL databases. </p> <p>Java 8: Use Executor for multi-threading, CompletableFuture for asynchronous processing, and Streaming. </p> <p>MySQL: Create index...</p>
VARBINARY
orBLOB
.SELECT MAX(LENGTH(col)) FROM tbl
) can give the maximum length.PRIMARY KEY
to keep track of "where you last left off", if feasible. (Do not useOFFSET
). More information about chunking: http://mysql.rjweb.org/doc.php/deletebig#deleting_in_chunks