ArangoDB-Community / arangodb-tinkerpop-provider

An implementation of the Tinkerpop OLTP Provider for ArangoDB
Apache License 2.0
84 stars 16 forks source link

Add Option to Increase Query Timeout for *all* queries #67

Open kuzeko opened 3 years ago

kuzeko commented 3 years ago

Query timeout is usually set for each query

https://www.arangodb.com/docs/stable/http/aql-query-cursor-accessing-cursors.html#create-cursor

In the java driver this can be specified with the AqlQueryOptions ttl(Integer ttl) method.

At this time, the arangodb java driver does not allow setting it globally. If not set for each query, a server-defined value will be used, which can be modified with a different server side option.

Therefore, it would be necessary to add a configuration parameter to the tinkerpop driver which will then add the option to all queries.

See also https://github.com/ArangoDB-Community/arangodb-tinkerpop-provider/issues/66 for more context