Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 76102 invoked from network); 27 Jun 2007 12:51:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2007 12:51:29 -0000 Received: (qmail 24255 invoked by uid 500); 27 Jun 2007 12:51:26 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 24173 invoked by uid 500); 27 Jun 2007 12:51:26 -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 24038 invoked by uid 99); 27 Jun 2007 12:51:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 05:51:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jukka.zitting@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 05:51:17 -0700 Received: by an-out-0708.google.com with SMTP id c37so33319anc for ; Wed, 27 Jun 2007 05:50:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HJbPH+uVR44Nv5IHcMrvDlUaAPXz/kyaou7s4hb4cdKX7no+zJATGVcxUS8/vMVXnpiY+jq6PUjdUi4Iphva15xERCsu7RawrXp58yQ+nVSAez6djUwuPKkBoQF/UQJiZGKpdSryNU+jUsE8Vc/KzB/eUeg8TXhiBuGsgVr/ebo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rcm5kl/DinJi2AI/9KTApv/oTDz2sdoBikdwIDz4pv1L9FGvZjdg8BRjASK8+qmmwXaPeDwnpR9OIL3m8jSxzhHI3OY9IIUwl3lED4MHtUEKo+8XUpjHC1Q3RvZ9jYDgFVACOJCcTLD2js7zRrFiCMlbIr/yYKAqYXAXX8kIG28= Received: by 10.100.96.9 with SMTP id t9mr260297anb.1182948657046; Wed, 27 Jun 2007 05:50:57 -0700 (PDT) Received: by 10.100.178.20 with HTTP; Wed, 27 Jun 2007 05:50:57 -0700 (PDT) Message-ID: <510143ac0706270550v1ea38bd9l2d770743b722babc@mail.gmail.com> Date: Wed, 27 Jun 2007 15:50:57 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: difference between xpath searches In-Reply-To: <76a6ebd00706270540o2ceccd81p901f2a2972a605e9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <76a6ebd00706261121i90b040fiec371af4294b1112@mail.gmail.com> <76a6ebd00706270540o2ceccd81p901f2a2972a605e9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 6/27/07, Mark Waschkowski wrote: > Regarding your last paragraph, 'potentially expensive operation' is the key > part I believe. I still, unfortunately, am unsure of some of the details > here and how they relate to the spec. First off, let me state that I think a > query not seeing nodes that have been added within the current session is > counter-intuitive because of how transaction contexts typically work within > a database: if you insert a row into a table, but its not committed yet, you > can still 'see' the new row from with your transactional context. I agree that the behaviour seems strange if you come from a database background, where search (the ubiquitous SELECT) is the one and only way to access content. Typically content repository and JCR in particular offer a set of content traversal methods (like Node.getNode), which makes searching a more restricted use case. A typical access pattern would be to search for content to update, not to update content and then search for the changes. Also, as Felix mentioned many content repositories (including Jackrabbit) use full text indexing that makes index updates potentially expensive. So, since there typically isn't a need to search for unsaved changes, JSR 170 considered it better to exclude transient changes from the search index. BR, Jukka Zitting