X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 57E3F5351D for ; Mon, 9 May 2005 14:52:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61555-05 for ; Mon, 9 May 2005 17:52:40 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 847C753699 for ; Mon, 9 May 2005 14:52:39 -0300 (ADT) Received: (qmail 15153 invoked by uid 1112); 9 May 2005 17:52:39 -0000 Date: Mon, 9 May 2005 12:52:39 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Igor Postelnik Cc: pgsql-jdbc@postgresql.org Subject: Re: Batch updates and inserts In-Reply-To: <46F30BC04EC6364695BC07D4A57AAD2C8F119F@auscorpex-1.austin.messageone.com> Message-ID: References: <46F30BC04EC6364695BC07D4A57AAD2C8F119F@auscorpex-1.austin.messageone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/37 X-Sequence-Number: 12868 On Mon, 9 May 2005, Igor Postelnik wrote: > What combination of JDBC driver and backend do I need to have support > for addBatch/executeBatch? What's a reasonable limit for number of > statements in a batch - either by number of rows or total size? > Batch statements have been available in the driver for some time, but the 8.0 driver is the first driver to actually perform them in a batch fashion. It requires at least a 7.4 server to take advantage of this. Size doesn't really matter because the driver itself will internally run things in batches of 256 statements at a time. Kris Jurka