Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 83316 invoked from network); 16 Feb 2006 15:53:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Feb 2006 15:53:13 -0000 Received: (qmail 59396 invoked by uid 500); 16 Feb 2006 15:53:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 59362 invoked by uid 500); 16 Feb 2006 15:53:12 -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 59353 invoked by uid 99); 16 Feb 2006 15:53:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 07:53:11 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.182.146] (HELO e6.ny.us.ibm.com) (32.97.182.146) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 07:53:11 -0800 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e6.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id k1GFqohN021284 for ; Thu, 16 Feb 2006 10:52:50 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay04.pok.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id k1GFqoNH204920 for ; Thu, 16 Feb 2006 10:52:50 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11/8.13.3) with ESMTP id k1GFqorH027255 for ; Thu, 16 Feb 2006 10:52:50 -0500 Received: from [127.0.0.1] (sig-9-48-109-114.mts.ibm.com [9.48.109.114]) by d01av04.pok.ibm.com (8.12.11/8.12.11) with ESMTP id k1GFqj7i026938 for ; Thu, 16 Feb 2006 10:52:46 -0500 Message-ID: <43F49FCB.5030108@apache.org> Date: Thu, 16 Feb 2006 07:52:43 -0800 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: conflict detection strategies References: <43F1BEF6.6020301@sun.com> <43F23899.8020608@sun.com> In-Reply-To: <43F23899.8020608@sun.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii 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 Andreas Korneliussen wrote: > Hi, > > The implementation of SUR just builds on the existing scrollable > resultsets, which collects all rows into a table. We have extended this > table to also contain RowLocation and some metadata. > This means we do not need to change the store module to navigate > backward etc - no changes in the store module. > > Updatable cursors in derby uses RowLocation, however the row is > guaranteed to be locked (current row has update lock, I think, > regardless of isolation level). > As for holdable cursors, forward only updatable cursors require the user > to navigate to the next row after a commit, thereby getting a new > rowlocation, on a row which is locked. > > I will propose a more detailed solution tomorrow, so it becomes more > clear, and less mysterious, what I really propose :-) > Any other suggestions are of course welcome. Was this posted, the more detailed solution? There was a little more detail on a proposed interaction with online compress, but I think that is based upon a whole lot of design thinking and assumptions which has not made it to list. I'd assumed you meant you were going to describe your proposed full solution to SUR, I'm interested to know your approach works with the various isolation levels, how you handle deleting the rows, how holdability is supported, etc. And if during working on this you had to work out how scrollable read-only cursors are implemented, adding that as background would be excellent. Great knowledge to add to the community. Don't assume reviewers know how things work today, provide as much information as you know. Thanks, Dan.