Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 31314 invoked from network); 1 Dec 2006 14:54:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2006 14:54:38 -0000 Received: (qmail 6705 invoked by uid 500); 1 Dec 2006 14:54:46 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 6693 invoked by uid 500); 1 Dec 2006 14:54:46 -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 6684 invoked by uid 99); 1 Dec 2006 14:54:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 06:54:46 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of danz8086@hotmail.com designates 65.54.246.98 as permitted sender) Received: from [65.54.246.98] (HELO bay0-omc1-s26.bay0.hotmail.com) (65.54.246.98) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 06:54:33 -0800 Received: from hotmail.com ([65.54.174.85]) by bay0-omc1-s26.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Dec 2006 06:54:12 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 1 Dec 2006 06:54:12 -0800 Message-ID: Received: from 199.243.96.18 by BAY103-DAV13.phx.gbl with DAV; Fri, 01 Dec 2006 14:54:10 +0000 X-Originating-IP: [199.243.96.18] X-Originating-Email: [danz8086@hotmail.com] X-Sender: danz8086@hotmail.com From: "dan" To: Subject: RE: RowIterator loop is slow? Date: Fri, 1 Dec 2006 09:54:10 -0500 Message-ID: <000001c71558$8f12d570$6a05140a@pointalliance.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <456FEF0B.2080000@gmx.net> Thread-Index: AccVJ0NHlBIJeZpSSQaFcee7t1ffxQAKpcYg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-OriginalArrivalTime: 01 Dec 2006 14:54:12.0668 (UTC) FILETIME=[905D2FC0:01C71558] X-Virus-Checked: Checked by ClamAV on apache.org Thanks Marcel, > if your query does not have an 'order by' clause AND the query handler > configuration uses the default value for the > 'respectDocumentOrder' parameter. In that case there is a post processing > in the query result which orders the result nodes in document order. That explains why it was slow for me - I have "order by @my:propname" in the query, although I've already set "respectDocumentOrder" to false. Now I feel somewhat agree with the idea in theads a few days back, about "expanding RDB schema" and "if using RDB repository, let RDB do all queries". IMO, "order by NOT_JUST_jcr:score" is very common use case. The way that retrieving all nodes from multiple BLOBs into Java objects and then do Java sorting, won't have any performance advantage over that allowing RDB to handle everything in one shot. Also, many RDB products now have full-text search capability, although they may not be as great as Lucene. When considering the 'over-all' performance, it might be legitimate to think about a "RDB oriented search/query mechanism". Of course, that may fall beyond the scope of Jacarabbit, as a reference impl of JCR. Thanks again & Best regards, Dan