Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 27266 invoked from network); 22 Dec 2010 09:10:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 09:10:11 -0000 Received: (qmail 31745 invoked by uid 500); 22 Dec 2010 09:10:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 31062 invoked by uid 500); 22 Dec 2010 09:10:08 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 31049 invoked by uid 99); 22 Dec 2010 09:10:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 09:10:07 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mueller@adobe.com designates 64.18.1.187 as permitted sender) Received: from [64.18.1.187] (HELO exprod6og104.obsmtp.com) (64.18.1.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 09:09:59 +0000 Received: from source ([192.150.11.134]) by exprod6ob104.postini.com ([64.18.5.12]) with SMTP ID DSNKTRHAUzTDeWQgn8g4SVSaBxsBPu7iUQwk@postini.com; Wed, 22 Dec 2010 01:09:39 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id oBM99Et8017684 for ; Wed, 22 Dec 2010 01:09:14 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id oBM99ctm025527 for ; Wed, 22 Dec 2010 01:09:38 -0800 (PST) Received: from excas02.corp.adobe.com (10.8.188.212) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 22 Dec 2010 01:09:38 -0800 Received: from eurcas01.eur.adobe.com (10.128.4.27) by excas02.corp.adobe.com (10.8.188.212) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 22 Dec 2010 01:09:38 -0800 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Wed, 22 Dec 2010 09:09:36 +0000 From: Thomas Mueller To: "users@jackrabbit.apache.org" Date: Wed, 22 Dec 2010 09:09:34 +0000 Subject: Re: count of all subfolders Thread-Topic: count of all subfolders Thread-Index: Acuht/QgDwy5aW+BQdOxnPye+/qklg== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.1.0.101012 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi, What you could do to estimate the number of nodes per sub-tree. But this requires some advanced knowledge about Jackrabbit internals, so this might not be a solution for you. It requires access to the persistence manager or backend storage: - Get 100 or 200 node ids from the persistence manager or backend storage - it doesn't matter what nodes ids, just read any. Plus get the total node count (unless you only need to estimate the percentages). - Load those nodes using the node id (UUID). - For each of those nodes, get the path. - Sum the counts for each parent path (using a hash map). Regards, Thomas