Hi Johannes,
As a single query may yield a large number of query plans if xquery:eval is repeatedly invoked, and as all of these plans will be created at runtime, we haven’t included the plans in the query optimization.
However, if a query utilizes the index if it is run standalone, the index will also be used if xquery:eval is run, so you should be able to check some of your queries in advance. If your dynamic queries do not change, a good alternative is to use xquery:invoke; this might simplify your tests.
Best, Christian
On Wed, Oct 24, 2018 at 3:02 PM Johannes Echterhoff echterhoff@interactive-instruments.de wrote:
Hello,
Is there a way to determine if the query that is executed by xquery:eval(…) makes use of index information? Can we somehow obtain the optimized plan for that query?
Best regards,
Johannes