one more thing to consider...

while it probably won't have that much of an impact with Jackrabbit 2.x
the situation is different with Jackrabbit Oak. Oak currently comes with
default indexes for jcr:primaryType and jcr:mixinTypes. If you now
turn your query into 'FROM nt:base' Oak won't be able to leverage
those indexes and the query will be terribly inefficient. You will have
to add an index on sling:vanityPath to make if efficient again.

regards
 marcel

> -----Original Message-----
> From: Marcel Reutegger [mailto:mreut...@adobe.com]
> Sent: Donnerstag, 21. Februar 2013 12:53
> To: dev@sling.apache.org
> Subject: RE: Vanity Path query
> 
> Hi,
> 
> > Does changing "FROM sling:VanityPath" to "FROM nt:base" have any
> > noticeable impact on performance or cost of the query ?
> > Ian
> 
> probably not. it might even be a bit faster because the query does
> not have to filter by node type.
> 
> regards
>  marcel

Reply via email to