Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 74360 invoked from network); 1 Mar 2008 18:04:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2008 18:04:26 -0000 Received: (qmail 43081 invoked by uid 500); 1 Mar 2008 18:04:21 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 43042 invoked by uid 500); 1 Mar 2008 18:04:21 -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 43029 invoked by uid 99); 1 Mar 2008 18:04:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Mar 2008 10:04:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.10.46.63] (HELO as.toolazydogs.com) (72.10.46.63) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Mar 2008 18:03:33 +0000 Received: (qmail 6030 invoked from network); 1 Mar 2008 10:03:51 -0800 Received: from c-76-103-141-199.hsd1.ca.comcast.net (HELO ?192.168.1.100?) (76.103.141.199) by toolazydogs.com with (AES128-SHA encrypted) SMTP; 1 Mar 2008 10:03:51 -0800 Message-Id: From: "Alan D. Cabrera" To: "Apache Directory Developers List" In-Reply-To: <47C2BDF9.50609@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: DN storage : Table or Hash ? Some tests... Date: Sat, 1 Mar 2008 10:03:49 -0800 References: <47C2BDF9.50609@gmail.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 25, 2008, at 5:09 AM, Emmanuel Lecharny wrote: > Hi guys, > > I did some small tests in order to check if storing DN into a BTree > was slower than using an Hash. Assuming that we have enough memory > to cache data, I found that using a Hash does not bring any kind of > performance boost compared to using a BTree. Worst, it slow down the > wriate operation (twice slower ...). > > My small test was to store 500 000 DNs, using a 200 000 elements > cache, and searching for 500 000 random DNs from the created > structure. > > Some more insights : > - if the cache is not big enough, performances are just incredibly > bad (disk accesses, a hell lot ...) > - JDBM might be a little bit too light to support more than a few > hundred of thousands elements. Very interesting. Can you check in your stuff into a sandbox? Regards, Alan