Hi Jonathan,
Is there a way to pretty-print the optimized query from the -V option?
Currently no. Personally, I’m not aware of any XQuery code formatter that works really well. Maybe anyone else on the list does?
What is the best way to see which indexes are being used?
The usual way is to parse the compilation output for "apply ... index" entries. Our documentation might give you some more hints [1].
Cheers, Christian