Last active
January 21, 2016 10:24
-
-
Save bibryam/fc3ae1aebbad99f21e0f to your computer and use it in GitHub Desktop.
SQL component batch insert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return new RouteBuilder() { | |
| public void configure() throws Exception { | |
| from("direct:start") | |
| .aggregate(header("PROD_TYPE"), new SQLStrategy()).completionSize(100).completionTimeout(1000) | |
| .to("sql:insert into products (price, description) values (#, #)?batch=true"); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment