Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 50F4C1337B9C for ; Wed, 30 Mar 2011 11:04:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65107-06 for ; Wed, 30 Mar 2011 14:04:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from web33207.mail.mud.yahoo.com (web33207.mail.mud.yahoo.com [209.191.69.155]) by mail.postgresql.org (Postfix) with SMTP id 69F151337999 for ; Wed, 30 Mar 2011 11:04:50 -0300 (ADT) Received: (qmail 8880 invoked by uid 60001); 30 Mar 2011 14:04:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1301493890; bh=8zCugIxZ8FKLphdIz9bTbAoFu1z/L9ixevRcuJ4kmls=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TceV14dPduHhlFMVPJcV9/yBBoAKc3eSe/FOBT3MTFIP7UOh3qQ/kBB0Yj0UXlgT+xdwPIogMvRHpWpt8dHuknW+2Gb14SI0P1hHCjt5koJpZ1IUQTxLlDwQbLdju9jEO9FqCo1S9paX7vFn9QlCbEbGvtHbOlNvIvtgYxC6ciI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=E93rJRidfsqQtxh/oDAICzpdNHrmX4oLAbOmi3we2H8e2TaKahn7jSBG/eMvSqFuJxYp5CqpfH7G2xidAQNxWSdwHGxz4VNj4+FJDDtiWHRLtwaiFHelLFECtFrDUiPZYifGcQGOK74O1PYKof0zzf+CzmwBiWNroEOj8u/568w=; Message-ID: <121151.6377.qm@web33207.mail.mud.yahoo.com> X-YMail-OSG: FpQkua4VM1mKmNFMGRZV2HOZCTmO8TCT826zDE1WC7bt_cJ SEQyED9wQ6dpmAn5vEU_s.6.PuarOFWX.uVgyohgFXs1tULvGWxbVfeTjGLz G6XLfSAudKXdqmqE66CgYd.2JLPkch3DUrvywNnxKIPwF7F1vffWFpqpiww2 l3JwJMJxc.KWkSsqWdmN4wTNklRMOE9W1HfXdTG7bhxe_9D2QPpTgXlRwH_s 9gmv0p5RGbgdUD.Sl9iYZQcJOuVwkPD9upj9Cjtr_D1UGFRHKZSVPEfImi.s FXuzMP7DDdT5aecTEf9SiOjpePdBSFdn2nH6kTxTt15YhJtmtebSOtx85mYi apnEfqsneTtdWe5kc2JFVCS4dgB1jV9h6eKrF4NIKFQepfKipk69_oZVVeMr KFX8IrgL6CQmVvA-- Received: from [199.84.5.210] by web33207.mail.mud.yahoo.com via HTTP; Wed, 30 Mar 2011 07:04:50 PDT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Wed, 30 Mar 2011 07:04:50 -0700 (PDT) From: Quartz Subject: Re: JDBC gripe list Cc: pgsql-jdbc@postgresql.org In-Reply-To: <4D920984020000250003BF08@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.877 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, RFC_ABUSE_POST=0.001, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201103/133 X-Sequence-Number: 21688 > > it would be done in a transaction otherwise what is=0A> the point ?=0A>= =0A> That's a fair question.=A0 A batch will almost always=0A> run faster= if=0A> done as a single transaction which either runs in its=0A> entirety = or=0A> fails in its entirety.=A0 What is the reason for wanting=0A> to use = batch=0A> processing if not for speed?=A0 I think we need to see a=0A> reas= onable=0A> use case from someone advocating this change in order to=0A> jus= tify it.=0A> (Note: "It works in MySQL" won't cut it.)=0A> =0A> -Kevin=0A>= =0A=0A=0AI wrote earlier that the batch is independant form the will to ma= ke it a transaction for a few reasons:=0A=0Aa) you can't control the row lo= cks involved in the batch, and you could end up in a deadlock. This is freq= uent when you just intended to pile up statements for another thread to cal= l executebatch.=0A=0Ab) you just want to run a playlist of independant SQLs= not related to each other and you don't expect some failures to prevent th= e others from running.=0A=0AThe batch works independantly from a transactio= n. I can't stress this differently. Maybe you have never used it this way, = or learned it with a biased perspective that batches is only for transactio= n. I hope I gave a fresh perspective to make a better driver.=0A