Marcel Reutegger wrote:
Florent Guillaume wrote:
using different types for the child nodes is definitively a good idea, as it helps narrowing down the set of nodes that may match.

If I have the (non-mixin) types:
  [my:bar]
     ...
  [my:foo] > my:bar
     ...
  [my:gee] > my:bar
     ...
the spec (6.6.3.2) tells me that I can query
  //element(*, my:bar)
and I'll get my:foo and my:gee nodes too. But is this implemented in jackrabbit using efficient indexes, or is there an iteration and comparison going on?

jackrabbit uses an index to resolve the types. it basically expands the type hierarchy on parse time and then uses the index to collect the node.

Ah excellent, thanks. That's what I hoped.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]

Reply via email to