Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D95E99E94 for ; Mon, 30 Apr 2012 08:20:01 +0000 (UTC) Received: (qmail 76031 invoked by uid 500); 30 Apr 2012 08:20:00 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 75718 invoked by uid 500); 30 Apr 2012 08:19:49 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 74727 invoked by uid 99); 30 Apr 2012 08:19:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 08:19:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 08:19:45 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id BC25C2388B46 for ; Mon, 30 Apr 2012 08:19:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1332100 - /directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java Date: Mon, 30 Apr 2012 08:19:25 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120430081925.BC25C2388B46@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Mon Apr 30 08:19:25 2012 New Revision: 1332100 URL: http://svn.apache.org/viewvc?rev=1332100&view=rev Log: Fetch the entry before doing an evaluation on it, for OBJECT scope searches. It saves 17%... Modified: directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java Modified: directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java?rev=1332100&r1=1332099&r2=1332100&view=diff ============================================================================== --- directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java (original) +++ directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java Mon Apr 30 08:19:25 2012 @@ -162,6 +162,10 @@ public class DefaultSearchEngine evaluator = evaluatorBuilder.build( filter ); + + // Fetch the entry, as we have only one + Entry entry = db.lookup( indexEntry.getId(), effectiveBase ); + indexEntry.setEntry( entry ); if ( evaluator.evaluate( indexEntry ) ) {