Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86818 invoked from network); 1 Sep 2010 13:34:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 13:34:24 -0000 Received: (qmail 40642 invoked by uid 500); 1 Sep 2010 13:34:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40553 invoked by uid 500); 1 Sep 2010 13:34:21 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 40375 invoked by uid 99); 1 Sep 2010 13:34:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 13:34:20 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 13:34:12 +0000 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o81DXlrI004924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Sep 2010 13:33:49 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o81AhYWE017823 for ; Wed, 1 Sep 2010 13:33:46 GMT Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 552692941283347954; Wed, 01 Sep 2010 06:32:34 -0700 Received: from richard-hillegas-computer.local (/10.159.220.184) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 01 Sep 2010 06:32:30 -0700 Message-ID: <4C7E55ED.2070408@oracle.com> Date: Wed, 01 Sep 2010 06:32:29 -0700 From: Rick Hillegas User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: is there some way to support bulk insert without new syntax, in a zero admin way? References: <4C77E25F.7040100@oracle.com> <4C7D49DF.8030308@sbcglobal.net> <4C7D5C24.7040504@oracle.com> <4C7D787E.8060904@sbcglobal.net> <4C7DA921.8060709@gmail.com> In-Reply-To: <4C7DA921.8060709@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks to everyone for the additional discussion. I have logged two issues based on our consensus: DERBY-4788 - Master issue for automatically applying the bulk-insert optimization when inserting large data sets into empty tables. DERBY-4789 - Always apply the bulk-insert optimization when the source stream involves a table function. Thanks, -Rick Bryan Pendleton wrote: >>> I think that I would be satisfied with something less ambitious: If >>> the source stream for the INSERT involves a table function, then >>> always attempt a bulk insert--naturally, the bulk insert optimization >>> would be applied only if the target table was empty. This wouldn't > > +1 to improved performance with no non-standard language changes! > > +1 also to the suggestion of Knut Anders to enable a standards-compliant > TRUNCATE TABLE and then gain import speed that way. > > The entire discussion has been interesting and instructive, thank you > for helping us understand the issues, even though the rest of us aren't > commenting :) > > thanks, > > bryan >