arangodb / spring-data

Spring Data ArangoDB
https://www.arangodb.com/docs/stable/drivers/spring-data-getting-started.html
Apache License 2.0
111 stars 56 forks source link

How can I get it to use the ArangoDBAsync driver? #273

Open ndtreviv opened 1 year ago

ndtreviv commented 1 year ago

I see the default is SimpleArangoRepository which uses the ArangoDB driver under the hood.

Is there support for the ArangoDBAsync driver anywhere?

rashtao commented 1 year ago

Currently Spring Data ArangoDB can only use the synchronous driver.

ndtreviv commented 1 year ago

Are there any plans to offer support for the ArangoDBAsync driver?

rashtao commented 1 year ago

While this is possible, due to internal prioritization the related work has not been planned yet.

rashtao commented 9 months ago

Since Java Driver version 7.2.0, the asynchronous driver can be accessed via ArangoOperations#driver() and ArangoDB#async(), e.g. by invoking ArangoDBAsync adbAsync = arangoOperations.driver().async();.

Anyways, all the operations performed by ArangoOperations and ArangoRepository are still implemented using the synchronous driver.