Skip to content

Expose setting 'options' in AQL Query Options #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gauravkumar37 opened this issue Jul 31, 2016 · 2 comments
Closed

Expose setting 'options' in AQL Query Options #47

gauravkumar37 opened this issue Jul 31, 2016 · 2 comments

Comments

@gauravkumar37
Copy link

gauravkumar37 commented Jul 31, 2016

As mentioned https://docs.arangodb.com/2.8/HttpAqlQueryCursor/AccessingCursors.html, there is an options flag which lets us control profile for additional query profiling. Turns out it is enabled by default and I would like to turn it off.
Currently, there is no option to control this from AQL Query Options.
It should also be possible to fetch the extra.stats parameter returned in the cursor output. It is only possible to access this when using driver.executeAqlQuery via cursorResult.getEntity.getExtra. However, it is not available via driver.executeDocumentQuery.
Which one out of the both should be used and when?

@mvollmary
Copy link

Thanks,
we will add the flags and the extra-attribute in the next version.

Which one out of the both should be used and when?

driver.executeDocumentQuery returns a cursor of DocumentEntity. In this wrapper class you have fields for _id, _key and _rev. You only need DocumentEntity, when you need one of these fields, and your own entity-class does not contains them.

a-brandt pushed a commit that referenced this issue Aug 3, 2016
a-brandt pushed a commit that referenced this issue Aug 3, 2016
a-brandt pushed a commit that referenced this issue Aug 5, 2016
a-brandt pushed a commit that referenced this issue Aug 5, 2016
@a-brandt
Copy link
Contributor

a-brandt commented Aug 5, 2016

Fixed in version 3.0.2.

@a-brandt a-brandt closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants