Hi Hans,
thanks for the link; do you want us to add it to our Clients page [1]?
In other databases, the QUERY/BIND/EXECUTE thing is often referred to as prepared query execution, and prepared queries can usually be executed multiple times, which is why I asked.
Yes, that’s an absolutely valid question/concern. As Francis pointed out, our current client API does not allow to rebind variables. This may change in the medium term as soon as XQuery expressions will be internally pre-compiled by BaseX. A simpler and short-term solution could be to cache the query string in our server-side QueryListener class and reparse it whenever necessary.
But then, maybe it would be even better to switch to the ReST interface instead.
Just as a hint: for our own, XQuery-based web applications, we have completely switched over to RESTXQ [2, 3].
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Clients [2] http://docs.basex.org/wiki/RESTXQ [3] http://files.basex.org/xmlprague2013/ ____________________________
Anyway, all this is fun and exciting, and it is great to see that BaseX is supported well! Any thoughts about my approach would be grealy appreciated.
Cheers, Hans