Hello all,
I have to query all the databases on one server for docs matching a query.
I do it with this query for example:
db:list() ! db: open(.)/entry[@about='abc']
This query never hits the available attribute index.
I could rewrite the query to something like
db:list() ! attribute(., 'abc', 'about')/..
and in this case it takes advantage of the index of course.
The problem is that I have to implement more queries which have much more generic predicate structures where I probably won't be able to use indexes explicitly.
Is there any possibility to rewrite this query in order to use the indexes implicitly?
Thanks,
Marco.