Skip to content

Instantly share code, notes, and snippets.

@jerolba
Last active January 7, 2019 14:59
Show Gist options
  • Save jerolba/b49b82aec1185101ca6a30a6923f845e to your computer and use it in GitHub Desktop.
Save jerolba/b49b82aec1185101ca6a30a6923f845e to your computer and use it in GitHub Desktop.
if (cont % batchSize == 0) {
InputStream is = new ByteArrayInputStream(sb.toString().getBytes());
Statement statement = (Statement) unwrapped.createStatement();
statement.setLocalInfileInputStream(is);
statement.execute(LOADDATA);
sb.setLength(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment