From dev-return-30403-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu May 21 20:32:45 2009 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 3584 invoked from network); 21 May 2009 20:32:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 20:32:44 -0000 Received: (qmail 47470 invoked by uid 500); 21 May 2009 20:32:57 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 47386 invoked by uid 500); 21 May 2009 20:32:57 -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 47378 invoked by uid 99); 21 May 2009 20:32:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 20:32:57 +0000 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: domain of elecharny@gmail.com designates 209.85.219.180 as permitted sender) Received: from [209.85.219.180] (HELO mail-ew0-f180.google.com) (209.85.219.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 20:32:46 +0000 Received: by ewy28 with SMTP id 28so1614495ewy.25 for ; Thu, 21 May 2009 13:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=oBhUE0n4Lcxcl+2VUxlveyMatUf+AqMvJBj4n59VRmI=; b=eiQxLVUSj+5Xsq1dewLNn+ts7VxRfn+PArX5rNzAXKocojnMU2xltzXEWOqVqqz6ve cJIbNbVm5xc/wBQm2TtIvNBmo0DyjgfzH+DRLbAmUkOV2XLdo4hCuR6KHQWLmJ5beXlB u3xr7s+W3Bw48/pYYIjlfBfpKlXPk52xTmRRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=LrHBi/BkNkaIAT4qsq9d44YblQHKfCa5SEju+UonJFHxU8XZMzM7iSdxgN5nOZkZuJ Ptz1MfPjmw6clAlRJnWDI8j4u+bzJ6YasA7cGlP2M9AUi6RDzOizIeZc6QSHxkV/qLJD 0F07aBLI9MxVVhFYitJvvE0j0EOU01bBFdReY= Received: by 10.210.135.20 with SMTP id i20mr3771871ebd.40.1242937945890; Thu, 21 May 2009 13:32:25 -0700 (PDT) Received: from ?192.168.0.1? (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by mx.google.com with ESMTPS id 23sm2745311eya.49.2009.05.21.13.32.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 May 2009 13:32:24 -0700 (PDT) Sender: Emmanuel Lecharny Message-ID: <4A15BA5B.9000604@nextury.com> Date: Thu, 21 May 2009 22:32:27 +0200 From: Emmanuel Lecharny User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [ApacheDS] index builder tool References: <4A158A59.8090409@gmail.com> <4A159EA6.5090509@apache.org> In-Reply-To: <4A159EA6.5090509@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Stefan Seelmann wrote: > Kiran Ayyagari wrote: > >> hello guys, >> >> Got the index builder tool working and I have a question :) >> >> Had a brief chat with Emmanuel on IRC which raised up this question, >> >> Should this tool be part of the core?. >> >> Consider a scenario where a new index has been added in the server.xml >> file when the server already holds some data but it isn't indexed >> till this moment. >> >> In this case if the server automatically checks this new change and >> builds an index >> after considering the user's choice( kind of yes/no) OR using a >> global optional flag >> like --rebuild-index (so that the user interaction can be avoided), >> then there is no >> need to explicitly invoke this tool every time a new index needs to >> be added. >> (except when the user wants to rebuild an existing index offline) >> >> > > Sounds good. > > I just wonder if it is possible to rebuild the index while the server is > running? If possible then we could have an extended operation (stored > procedure) that builds the index. This way it could be invoked from > remote via Studio. > It's a bit complicated. As the index building might be costly, in the mean time, the index won't be available. That mean we should freeze the server for quite a moment . -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org