Hello Erandi,
every time that we run a query from the command line, we, also, run
automatically a showIndexes query so that we know
if there is or not an index for the specific collection of the query.
Since, the showIndexes query is executed only for storing
some index metadata and we do not need to print any results, we wanted
to make it run as fast as possible. Thus, we turned off a few
unnecessary options.
However, now that we will have your work, I think that we will not need
that second query for each query that we run.
Christina
On 7/28/2017 6:57 AM, Erandi Ganepola wrote:
Hi All,
In VXQuery CLI class constructor[1] two variables (opts & indexOpts) are
used to assign command line options that are sent by the user. Both
variables have same object reference. But using indexOpts, some command
line options' (such as showAST, showQuery, compileOnly) values are always
set to false without considering user's options. Is there any particular
purpose for doing this?
[1]
https://github.com/apache/vxquery/blob/master/vxquery-cli/src/main/java/org/apache/vxquery/cli/VXQuery.java#L94
Thanks and Regards,
*Erandi Ganepola*
Undergraduate
BSc. Management and Information Technology (IT Sp.)
University of Kelaniya, Sri Lanka
<https://www.linkedin.com/in/erandiganepola/>
<https://github.com/erandiganepola> <https://twitter.com/erandiganepola>
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus