Return-Path: Delivered-To: apmail-incubator-directory-dev-archive@www.apache.org Received: (qmail 64216 invoked from network); 15 Apr 2004 19:04:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Apr 2004 19:04:51 -0000 Received: (qmail 48734 invoked by uid 500); 15 Apr 2004 19:04:41 -0000 Delivered-To: apmail-incubator-directory-dev-archive@incubator.apache.org Received: (qmail 48692 invoked by uid 500); 15 Apr 2004 19:04:41 -0000 Mailing-List: contact directory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Directory Developers List" Reply-To: "Apache Directory Developers List" Delivered-To: mailing list directory-dev@incubator.apache.org Received: (qmail 48678 invoked from network); 15 Apr 2004 19:04:40 -0000 Received: from unknown (HELO imf19aec.mail.bellsouth.net) (205.152.59.67) by daedalus.apache.org with SMTP; 15 Apr 2004 19:04:40 -0000 Received: from franklin ([65.80.197.149]) by imf19aec.mail.bellsouth.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP id <20040415190446.DTIQ1773.imf19aec.mail.bellsouth.net@franklin> for ; Thu, 15 Apr 2004 15:04:46 -0400 From: "Alex Karasulu" To: "'Apache Directory Developers List'" Subject: [rms] Using rowid in secondary databases Date: Thu, 15 Apr 2004 15:04:42 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcQjGps/miNCPG80SDaHFBXUgl0P4gAAac3Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-Id: <20040415190446.DTIQ1773.imf19aec.mail.bellsouth.net@franklin> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thought I'd put this out there on the directory dev list. > -----Original Message----- > From: Alex Karasulu [mailto:aok123@bellsouth.net] > Sent: Thursday, April 15, 2004 2:51 PM > To: bdbje@sleepycat.com > Subject: [bdbje] [rms] Using rowid in secondary databases > > Hi, > > I'm trying to find a way to generalize the use of integers or longs as > the primary keys of records in a master table sort of like the way row > ids work in an RDBMS. > > I'm envisioning the use of sequences to do this in a structure like > so: > http://nagoya.apache.org/jira/secure/attachment/14385/DatabaseTable.png > > Now I'm sure the folks at SleepyCat thought about this one before. > Wondering what your findings were if the use of integers and sequences > was thought of to tie together secondary and master databases. > > The reason why this is looking attractive to me is you generalize how > the structure is glued together rather than having the master capable > of having any kind of key. Plus I'd like to stick as close to using > primitives as possible for keys. > > Also on a side note I was wondering if the feature that resuscitates > the primary database entry when a lookup occurs on a secondary can be > turned off in any way. Sometimes an application may just want to > scan indices and that suffices so resuscitating the data within the > master table is wasteful in these situations. Is there a mechanism > for controlling this aspect of JE? > > Thanks, > Alex