Re: [basex-talk] Is there any documentation on the narrow limits of XQuery index optimization in BaseX?

2017-09-18 Thread Christian Grün
> The thing I miss most is a function > like xquery:eval that accepts a function as an argument but also takes a > context and does that runtime optimization. I assume you are looking for something like the following query? xquery:eval-func( function($db, $name) { db:open($db)//person[name

Re: [basex-talk] Is there any documentation on the narrow limits of XQuery index optimization in BaseX?

2017-09-18 Thread Omar Siam
Hi! Interesting ideas. I don't like the pragma idea that much because there is already sth. like that with xquery:eval. The thing I miss most is a function like xquery:eval that accepts a function as an argument but also takes a context and does that runtime optimization. Or a way to convert

Re: [basex-talk] Is there any documentation on the narrow limits of XQuery index optimization in BaseX?

2017-09-18 Thread Christian Grün
Hi Omar, Our current XQuery optimizer opens the addressed database in order to find out if it has the required index structures, and if these are up-to-date. Moreover, the cheapest index lookup will be selected if there are several index candidates. For example, in the following query, it will be