You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by jiangzhizar, Mathieu Vincent, gfitrz, entimo-ag, Bobai Kaeto, Lennart Hildebrandt, Arne Burmeister, Dmitry, shahar cohen, Jean-Pacôme Delmas and 2 more
Any news here?
I found that ArangoDB 3.5+ and java driver 6.0.0+ supports stream transaction. Is this feature not enough to support transaction of Spring data? (e.g. @transactional) Stream transactions
I want to try make this feature if it possible. I would appreciate any ideas or advices. Thank you.
@rashtao, thank you. Can you give some expected schedules? I have near production service with ArangoDB. I want to add transactions to the service before launching. The service has already some @transactional functions with Other DB(MariaDB, Kafka, ..). It will be so happy if ArangoDB can play with then seamlessly :)
@wildroco , the work has not been planned yet, so it is hard to make any estimation. For urgent production needs I would recommend you directly using streaming transactions from the driver API (accessible via arangoTemplate.driver().
Great, looking forward to it. Do you already know how this will work?
Will you collect all inserts/updates and execute them when the transaction ends?
We need this feature as well and will have to build a workaround until this is released. It would be nice if the workaround is close to how you will develop this so we have little work to do when integrating your change.
This is currently on hold, since use of stream transactions in Spring Data is constrained by a limitation in ArangoDB affecting AQL cursors within stream transactions (BTS-1859). Currently, a AQL cursor not consumed completely (i.e. a stream cursor or a cursor returning multiple batches) blocks other requests using the same transaction. For example, it blocks mapper requests to fetch linked entities.
The issue has been internally reported and is now being scoped and prioritized.
This is currently on hold, since use of stream transactions in Spring Data is constrained by a limitation in ArangoDB affecting AQL cursors within stream transactions (BTS-1859). Currently, a AQL cursor not consumed completely (i.e. a stream cursor or a cursor returning multiple batches) blocks other requests using the same transaction. For example, it blocks mapper requests to fetch linked entities.
The issue has been internally reported and is now being scoped and prioritized.
Activity
lbyoo commentedon Jun 20, 2018
I'm looking forward to when it will come true
kowlown commentedon Feb 25, 2019
I concur. When you have a business logic, only one Exception is enough to corrupt your data.
jiangzhizar commentedon Jul 1, 2019
I strongly urge that this feature be added.
gfitrz commentedon Jan 8, 2020
Please implement it. I can't use this database without this. Doing transaction by template is really messy.
wildroco commentedon Feb 23, 2020
Any news here?
I found that ArangoDB 3.5+ and java driver 6.0.0+ supports stream transaction. Is this feature not enough to support transaction of Spring data? (e.g. @transactional)
Stream transactions
I want to try make this feature if it possible. I would appreciate any ideas or advices. Thank you.
rashtao commentedon Feb 25, 2020
@wildroco thanks for pinging! I will look into it and update this thread about any progress. Also consider that support for new Spring Reactive Transactions (https://spring.io/blog/2019/05/16/reactive-transactions-with-spring) will be only possible once the upcoming ArangoDB reactive driver will be completed. You can follow the developments here: https://github.com/arangodb/arangodb-java-driver/tree/next
wildroco commentedon Feb 27, 2020
@rashtao, thank you. Can you give some expected schedules? I have near production service with ArangoDB. I want to add transactions to the service before launching. The service has already some @transactional functions with Other DB(MariaDB, Kafka, ..). It will be so happy if ArangoDB can play with then seamlessly :)
rashtao commentedon Mar 6, 2020
@wildroco , the work has not been planned yet, so it is hard to make any estimation. For urgent production needs I would recommend you directly using streaming transactions from the driver API (accessible via
arangoTemplate.driver().e7raem commentedon Dec 12, 2021
No update on this still?
Bearded-Programmer commentedon Feb 24, 2022
@rashtao Do we have any update on it ?
rashtao commentedon Feb 28, 2022
We have it in our plans for 2022.
jakobjoachim commentedon Mar 7, 2022
Great, looking forward to it. Do you already know how this will work?
Will you collect all inserts/updates and execute them when the transaction ends?
We need this feature as well and will have to build a workaround until this is released. It would be nice if the workaround is close to how you will develop this so we have little work to do when integrating your change.
rashtao commentedon Mar 7, 2022
It will be based on Stream Transactions https://www.arangodb.com/docs/stable/http/transaction-stream-transaction.html , so requests could be sent immediately and not needed to be collected for later execution.
303 remaining items
arangodb#80 replace dbname by database itself
arangodb#80 avoid collection creation or index creation inside transa…
arangodb#80 extract collection callback, improve implementation
arangodb#80 ensure collections before transaction start
arangodb#80 reuse collection name from persistent entity, escape coll…
arangodb#80 improve docs
arangodb#80 reduce ensure index calls (ignore hash and skiplist index…
lukaszkowalik commentedon Sep 5, 2023
Any news regarding this feature request?
lukaszkowalik commentedon Sep 5, 2023
I guess alternative to consider for transaction assurance is this:
https://university.arangodb.com/courses/java-driver-tutorial-v7/lessons/import-graph-data-with-stream-transactions/
not proven yet in my case.
rashtao commentedon Sep 12, 2023
@lukaszkowalik
Currently, to work around this you can use the underlying Java driver directly (
ArangoOperations#driver()), which offers support to stream transactions (see https://www.javadoc.io/doc/com.arangodb/arangodb-java-driver/6.25.0/index.html).To use Spring Data mappings, you can invoke the conversions to/from
VPackSlicemanually, see:https://www.arangodb.com/docs/stable/drivers/spring-data-reference-mapping.html#invoking-conversion-manually
e7raem commentedon Sep 14, 2023
@rashtao this pr is a year already. why no approve it #249
rashtao commentedon Sep 19, 2023
@bobaikato
Due to internal prioritization, this has not been included in the scope of https://github.com/arangodb/spring-data/releases/tag/v4.0.0
Also there are still work to do in order to address #249 (review)
rashtao commentedon Jun 18, 2025
This is currently on hold, since use of stream transactions in Spring Data is constrained by a limitation in ArangoDB affecting AQL cursors within stream transactions (BTS-1859). Currently, a AQL cursor not consumed completely (i.e. a stream cursor or a cursor returning multiple batches) blocks other requests using the same transaction. For example, it blocks mapper requests to fetch linked entities.
The issue has been internally reported and is now being scoped and prioritized.
kowalski-wlodzimierz commentedon Mar 11, 2026
any news regarding the support for Spring Data @transactional annotation?
rashtao commentedon Mar 12, 2026
This is still on hold, see here: #80 (comment)