Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB2DD9E64 for ; Mon, 12 Dec 2011 10:36:19 +0000 (UTC) Received: (qmail 15468 invoked by uid 500); 12 Dec 2011 10:36:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 15444 invoked by uid 500); 12 Dec 2011 10:36:19 -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 15436 invoked by uid 99); 12 Dec 2011 10:36:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2011 10:36:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [188.40.37.16] (HELO hq1.backendmedia.com) (188.40.37.16) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2011 10:36:09 +0000 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id 68DA1200C19E for ; Mon, 12 Dec 2011 10:35:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oG7Hf8Ex+7ES for ; Mon, 12 Dec 2011 11:35:46 +0100 (CET) Received: from [192.168.1.48] (53-125.3-85.cust.bluewin.ch [85.3.125.53]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id B7504200C19C for ; Mon, 12 Dec 2011 11:35:46 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: limiting the selectors in the select list From: Lukas Kahwe Smith In-Reply-To: Date: Mon, 12 Dec 2011 11:35:14 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <78A080B6-0623-4E9C-863A-FBB2244A6F61@pooteeweet.org> To: users@jackrabbit.apache.org X-Mailer: Apple Mail (2.1251.1) On Dec 12, 2011, at 11:20 , Alex Parvulescu wrote: > So, you are right you'll always get the full selector content is = returned > in a row (both "a" and "b" in this case), but 'getColumnNames' will = tell > you what was in the 'SELECT' specifically. > I don't know if this should be considered extra weight on the remoting > layer, and what would be the gain of filtering out unneeded selector = info > before pushing the info over the wire. I figured it out since the primaryType is prefixed with the selector = defined in the FROM > Back to your example, I don't understand why you would want to know = what > was the default selector, as you are the one building the sql in the = first > place. So you probably know that you are looking for "data.*" . This is for a generic layer. For PHPCR we have an ODM, which allows you to map nodes to documents. regards, Lukas Kahwe Smith mls@pooteeweet.org