Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0197A7A04 for ; Sat, 8 Oct 2011 06:28:21 +0000 (UTC) Received: (qmail 80935 invoked by uid 500); 8 Oct 2011 06:28:20 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 80770 invoked by uid 500); 8 Oct 2011 06:28:17 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 80758 invoked by uid 99); 8 Oct 2011 06:28:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Oct 2011 06:28:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Oct 2011 06:28:07 +0000 Received: by wyf23 with SMTP id 23so5341207wyf.37 for ; Fri, 07 Oct 2011 23:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=sFudSXD1xT/iA/MU0Z+HgoSQ4HHFQMyBQcnrrNGQfyo=; b=C05vzdd6nghTVmxbUYslxAK4g24Wk5w8N3RtKGlDxV4/vGrQtKB4QTZyASqcqi+N40 Yz7B0qlRwYR0FcfXlXmHqrM62yn/BovXKUX2DX8qtITmXb7Hr2JOxfAmqRoRtxH+hpiU uCC6rXHDGND9PpUpKoPc93GfuX3pAUQ5huTV4= Received: by 10.227.127.205 with SMTP id h13mr3476404wbs.92.1318055267022; Fri, 07 Oct 2011 23:27:47 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net. [78.192.106.184]) by mx.google.com with ESMTPS id n21sm20012758wbp.2.2011.10.07.23.27.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 23:27:46 -0700 (PDT) Message-ID: <4E8FED61.5020203@gmail.com> Date: Sat, 08 Oct 2011 08:27:45 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Apache Directory Developers List Subject: RDN index, oneLevel and sublevel index merge Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, Stefan started to modify the code to get rid of the oneLevel and subLevel index, which are more or less useless as we already have the hierarchy stored into the rdn index. However, this rdn index is not good enough as is to be use as a replacement for the two other indexes. Its structure forbid us to easily retrieve the children from a known entry. The current RDN index structure is : -> Entry ID The key is a tuple containing the parent ID to be able to rebuild the DN. The reverse index is : Entry ID -> We don't have duplicated values. Now, when we have an entry ID, there is no simple way to get the list of all the children for this entry. We will have to add a third index to deal with such searches : ParentId -> which will list all the children of a specific entry. I'm going to investigate around this idea i the next few days. Thoughts ? -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com