jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Query column specifier
Date Tue, 01 Jul 2008 08:15:24 GMT
Roman Puchkovskiy wrote:
> JCR spec says there's a way to specify what columns user wants to see in the
> result of the search using query. But it says that "In XPath the mechanism
> of the column specifier is not specified, though one possible approach is to
> interpret as the column specifier the last location step when it uses the
> attribute axis". So the first question is: if I use the following query:
> "/some/absolute/path/to/node/@jcr:uuid", will this select node's UUID?

correct. but you will only get the uuid of a node when it is referenceable.

> And another question: spec also says that "The column specifier has no
> effect on the content or form of the NodeIterator view of the query result."
> Does this mean that using selects to narrow search results to a small set a
> properties will not save CPU cycles? (I'm thinking about a case where a node
> is complex and I don't need to load it all, just its UUID).

only to a certain extent. the difference is probably insignificant.

regards
  marcel

Mime
View raw message