Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F6C2182AF for ; Mon, 26 Oct 2015 09:42:18 +0000 (UTC) Received: (qmail 22182 invoked by uid 500); 26 Oct 2015 09:42:17 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 22135 invoked by uid 500); 26 Oct 2015 09:42:17 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 22124 invoked by uid 99); 26 Oct 2015 09:42:17 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 09:42:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1F5541A0A21 for ; Mon, 26 Oct 2015 09:42:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.501 X-Spam-Level: ** X-Spam-Status: No, score=2.501 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id EVPhsFhhLmbS for ; Mon, 26 Oct 2015 09:42:07 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 860FE2085F for ; Mon, 26 Oct 2015 09:42:06 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 2FB0118764E7 for ; Mon, 26 Oct 2015 02:32:31 -0700 (PDT) Date: Mon, 26 Oct 2015 02:42:05 -0700 (MST) From: dermoritz To: users@camel.apache.org Message-ID: <1445852525942-5773060.post@n5.nabble.com> Subject: [camel-jdbc] how to fast batch update/insert? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I need to write many updates and inserts very fast. The speed of running many prepared statements is to slow because of server round trip/network. At the moment my route uses jdbc component to read and write date. The only way i see with this setup to batch- update/insert is to aggregate and create a big multi-insert/update. But this query would be very data base specific. Is there a way to leverage statement.executeBatc h in some way. Or let camel do the batching in general? thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/camel-jdbc-how-to-fast-batch-update-insert-tp5773060.html Sent from the Camel - Users mailing list archive at Nabble.com.