You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Michael Homeijer <mi...@fam-homeijer.demon.nl> on 2005/01/31 20:43:36 UTC
[jxpath] optimize xpath query on xpath enabled containers
Hi,
Im am looking at executing jxpath queries against a model that supports lazy loading and queries. Queries like "news[@title = ''test']" will be executed by looping through all nodes and testing if the expression is true for a node.
Because my model supports queries itself, It would be much faster to query the model and have the model itself execute the query that will load only the nodes for which the expression is true.
I saw a xalan integration in the code, possibly for the same purpose. Is there a way to extend jxpath with functionality that uses the model (or the nodepointer) itself to execute the rest of the query?
TIA,
Michael
Re: [jxpath] optimize xpath query on xpath enabled containers
Posted by Dmitri Plotnikov <dm...@apache.org>.
Michael,
I believe, adding this type of delegation for query evaluation would require
quite significant refactoring of JXPath. However, I could be wrong. Do you
have a particular fix in mind?
Thank you,
- Dmitri
----- Original Message -----
From: "Michael Homeijer" <mi...@fam-homeijer.demon.nl>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Monday, January 31, 2005 2:43 PM
Subject: [jxpath] optimize xpath query on xpath enabled containers
Hi,
Im am looking at executing jxpath queries against a model that supports lazy
loading and queries. Queries like "news[@title = ''test']" will be executed
by looping through all nodes and testing if the expression is true for a
node.
Because my model supports queries itself, It would be much faster to query
the model and have the model itself execute the query that will load only
the nodes for which the expression is true.
I saw a xalan integration in the code, possibly for the same purpose. Is
there a way to extend jxpath with functionality that uses the model (or the
nodepointer) itself to execute the rest of the query?
TIA,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org