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 48CA91016B for ; Sat, 2 Nov 2013 22:39:56 +0000 (UTC) Received: (qmail 896 invoked by uid 500); 2 Nov 2013 22:39:55 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 801 invoked by uid 500); 2 Nov 2013 22:39:55 -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 794 invoked by uid 99); 2 Nov 2013 22:39:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2013 22:39:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=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-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2013 22:39:48 +0000 Received: by mail-we0-f178.google.com with SMTP id q59so785020wes.37 for ; Sat, 02 Nov 2013 15:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=N2dRlyO4Rkav4YTO0dtq3/sbooaDfi1LuD4zn5veVeU=; b=rft+lEP5zQz1qDfDUwTco+CsMIpkM7VNl8QXdQIwitYJh4B94hefjOEIycaAuxSxfr XC3FFABcQ7Lqwp0trlRSSzy7UmyYa3EbjUpMmCcc2NUn0FBDNdvoxnK7kiI4XUn3VfIo nrhDgELG3vJrk1XMjDlFk+/eRK0ZEQ2G5E/kiULD6SLAiq9VusGj8AxVIdLe3kJUn2SK 6bKybkPV8I7fv8W1R0Gz1YA8AOLIakdswsDsik7JqV/xy6/mf15Z5pIIMJ9ktpuvIOPR uZhW/v2Lxr0pepSaHpxE1TdA6HiM7w2xkWnzCbrBXg4MCSFqSVEINhPrZ4ew3vEjZBZx i+Gg== X-Received: by 10.180.89.7 with SMTP id bk7mr6737032wib.32.1383431967933; Sat, 02 Nov 2013 15:39:27 -0700 (PDT) Received: from new-host-3.home (AMontsouris-651-1-245-70.w92-163.abo.wanadoo.fr. [92.163.20.70]) by mx.google.com with ESMTPSA id ft19sm21206168wic.5.2013.11.02.15.39.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 02 Nov 2013 15:39:27 -0700 (PDT) Message-ID: <52757F1E.6050805@gmail.com> Date: Sat, 02 Nov 2013 23:39:26 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Mavibot Partition X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, today, I investigated the way the Mavibot Partition is implemented, wrt to the modifications I've made those past month. There are a few missing parts, I'm afraid. First of all, we aren't counting correctly. When we add a tuple, we should increment the counter regardless the fact the key exists or not. In other words, we count tuples, not keys. That's easy to fix. A bit more complex : when we create a cursor on top of an index, we should be able to browse all the tuples back and forth. That means we should iterate over the keys, and over the values for each key if we have more than one. It requires some modifications in the way we have implemented the MavibotCursor. Typically, we have to retain the position in the BTree, *and* the position in the values associated with the key we are processing. Currently, it does noy work well. I'm going to get it fixed. Thanks for any comment on those findings. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com