Hi George,
Hello, I wonder if there is any way at the moment to run scripts with xquery version 1 only. I can't find a way to set XQUERY3 option to false. I have some scripts that fail to run (process runs forever) with BaseX and I want to see if the version is causing this.
All queries will be interpreted as XQuery 3.1. We have removed explicit support for XQuery 1.0 and XQuery 3.0, because the number of if/else checks in the code got more and more ugly.
If you are exclusively working with BaseX, I don’t understand exactly why the version is relevant for you. Could you please give us some more hints?
Also is there any way to see where BaseX is consuming so much time/processing power?
I guess that the answer largely depends on the way your XQuery code looks like. If our own XQuery code is getting more complex, we usually write functions for sub-tasks, which can then be profiled more easily (e.g. using the BaseX prof:time() function). Are you using library functions and modules in your code?
Cheers, Christian