Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 35445 invoked from network); 8 Feb 2008 17:10:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 17:10:27 -0000 Received: (qmail 51684 invoked by uid 500); 8 Feb 2008 17:10:18 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 51659 invoked by uid 500); 8 Feb 2008 17:10:18 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 51624 invoked by uid 99); 8 Feb 2008 17:10:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 09:10:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alessandro.bologna@gmail.com designates 64.233.184.238 as permitted sender) Received: from [64.233.184.238] (HELO wr-out-0506.google.com) (64.233.184.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 17:09:49 +0000 Received: by wr-out-0506.google.com with SMTP id c57so4063253wra.9 for ; Fri, 08 Feb 2008 09:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xhEtqiUPYzMqfJjBi/DEfUxC3TnaxbIN5XbYYZOM6PM=; b=TNWFK5oeM6YU388nfMr+10aD4cBA0YTbZIbhbPrGcPu5JK0W6ycLwZ3gM1VzpHzWJTfR51JTjOS7q7xu5AYG75zPL8x2rHRC0tufQMcs0uqSvor5IsHKDBQJdu1xuBVYFU8Se6KOZyqukHNAiBnfR0XtIV29kGfEdNHDZ1GFfd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R7dPNN3xLo2tQxp+tjn0JnrW4EqUFXW40eFhNbBeQIkBNxITOfjJLcauA2zIbeQvEk7YoqIJV2G/CAbmuFRpxtQi6e0fUumYw+stQwriD8vOovYFBqXGPPQ/eLNRvE2a++TZcxCVuVOdkgFXi4CbuS7r7vOUhGTqi2FKS3GpVL8= Received: by 10.142.163.14 with SMTP id l14mr7120794wfe.73.1202490595137; Fri, 08 Feb 2008 09:09:55 -0800 (PST) Received: by 10.142.221.9 with HTTP; Fri, 8 Feb 2008 09:09:55 -0800 (PST) Message-ID: <29a095670802080909s1b9ae118l344998ef0c4fb719@mail.gmail.com> Date: Fri, 8 Feb 2008 12:09:55 -0500 From: "Alessandro Bologna" To: dev@jackrabbit.apache.org Subject: Re: Same name siblings In-Reply-To: <510143ac0802080810i75529c05t212eb5ff68aff94b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <510143ac0802080723h26cc609ekc1825f9172773231@mail.gmail.com> <1b0d43d00802080748n7afb452dt143e5dd41ff474f1@mail.gmail.com> <510143ac0802080810i75529c05t212eb5ff68aff94b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I agree that it can be messy, and that many people use it for the wrong purpose, but I would like to mention that a very important use case for SNS is the ability to import XML and to access individual XML elements or attributes using JCR APIs. The DocumentView import is *tremendously* useful when used in a content processing environment, and I am afraid that dropping support for SNS all together would drive some of people (like us) that are currently using Jackrabbit to use just an XMLDB. Besides, if used in the context of XML, we import documents under a not SNS wrapper (say article00x, or "myFirstArticle"), and never had an issue with this approach. So with a little bit of REST architecturale style and some SAX/XSLT on top of it, JCR is working great, probably better than we could have hoped for. And, lastly, I think that Roy's Fielding vision on the JCR was to support this type of use case. I am still digesting the deprecation of XPATH in JSR 283, dropping XML support would be a little too much.. ;). So for me is a -1. Alessandro On Feb 8, 2008 11:10 AM, Jukka Zitting wrote: > Hi, > > On Feb 8, 2008 5:48 PM, David Nuescheler wrote: > > I think a feature that would address the "I have a bag of objects > > and I just want to persist them without thinking of a 'name' for > > each" usecase, would definitely be great. Maybe this could > > be the introduction of an addNode() without a childnode name. > > Good idea! We could also allow "*" as a wildcard child node name in > the existing addNode() signatures. > > > > WDYT, is SNS worth the effort, or should we consider dropping it? > > I don't think that it is problematic to have some features that are not > > optimized. > > I think the issue runs deeper than just performance. We have at least > one open issue, JCR-435, and given the fact that we guide people away > from SNS at the first sings of trouble I wouldn't be surprised if > there were other issues waiting. SNS code is quite complex and not > very thoroughly tested. > > BR, > > Jukka Zitting >