Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 71954 invoked from network); 15 Jun 2006 23:32:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 23:32:59 -0000 Received: (qmail 59952 invoked by uid 500); 15 Jun 2006 23:32:57 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 59920 invoked by uid 500); 15 Jun 2006 23:32:57 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 59909 invoked by uid 99); 15 Jun 2006 23:32:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 16:32:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.217.22.128] (HELO file1.syd.nuix.com.au) (203.217.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 16:32:54 -0700 Received: from [192.168.222.102] (host102.syd.nuix.com.au [192.168.222.102]) by file1.syd.nuix.com.au (Postfix) with ESMTP id 1D8FCB735C for ; Fri, 16 Jun 2006 09:32:15 +1000 (EST) Message-ID: <4491EF76.4030506@nuix.com.au> Date: Fri, 16 Jun 2006 09:38:30 +1000 From: Daniel Noll Organization: NUIX Pty Limited User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Derby Discussion Subject: Re: "generated by default" question References: <20060615211351.5D69B25150@dbrack01.segel.com> In-Reply-To: <20060615211351.5D69B25150@dbrack01.segel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Michael Segel wrote: > Uhm, > > I'm sorry, but where did I ever say 'select max()'? > Hint: I didn't because its not that efficient. Presumably he column would be indexed if you're doing operations like max() on it anyway, so efficiency isn't the problem. I suspect the problem would be what to do when two users tried to insert rows at around the same time. The second would fail to commit the transaction and have to try again. Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699 Web: http://www.nuix.com.au/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited.