2 Oct
2015
2 Oct
'15
11:55 p.m.
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.