You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Paco Avila <pa...@git.es> on 2006/03/23 18:49:33 UTC

SQL vs XPath

Is XPath better than SQL? Or faster? 

-- 
Paco Avila
GIT Consultors


Re: SQL vs XPath

Posted by Marcel Reutegger <ma...@gmx.net>.
Paco Avila wrote:
> Is XPath better than SQL? Or faster? 

XPath gives you more flexibility in filtering the path to a node. e.g. 
you can have predicates at each location step, that's something that is 
not possible in SQL.

Performance wise there is no difference. Both query syntaxes are 
translated in a language neutral query tree that is then executed on the 
lucene index.

regards
  marcel