Skip to content

Feature: support of @Transactional #80

Open

Description

@mvollmary
No description provided.

Activity

  1. lbyoo commented on Jun 20, 2018

    @lbyoo

    I'm looking forward to when it will come true

  2. kowlown commented on Feb 25, 2019

    @kowlown

    I concur. When you have a business logic, only one Exception is enough to corrupt your data.

  3. jiangzhizar commented on Jul 1, 2019

    @jiangzhizar

    I strongly urge that this feature be added.

  4. gfitrz commented on Jan 8, 2020

    @gfitrz

    Please implement it. I can't use this database without this. Doing transaction by template is really messy.

  5. wildroco commented on Feb 23, 2020

    @wildroco

    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.

  6. self-assigned this
    on Feb 25, 2020
  7. rashtao commented on Feb 25, 2020

    @rashtao
    Member

    @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

  8. wildroco commented on Feb 27, 2020

    @wildroco

    @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 :)

  9. rashtao commented on Mar 6, 2020

    @rashtao
    Member

    @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().

  10. e7raem commented on Dec 12, 2021

    @e7raem

    No update on this still?

  11. Bearded-Programmer commented on Feb 24, 2022

    @Bearded-Programmer

    @rashtao Do we have any update on it ?

  12. rashtao commented on Feb 28, 2022

    @rashtao
    Member

    We have it in our plans for 2022.

  13. jakobjoachim commented on Mar 7, 2022

    @jakobjoachim

    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.

  14. rashtao commented on Mar 7, 2022

    @rashtao
    Member

    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.

  15. 303 remaining items

  16. added 7 commits that reference this issue on Aug 31, 2023
  17. lukaszkowalik commented on Sep 5, 2023

    @lukaszkowalik

    l

    Any news regarding this feature request?

  18. lukaszkowalik commented on Sep 5, 2023

    @lukaszkowalik

    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.

  19. rashtao commented on Sep 12, 2023

    @rashtao
    Member

    @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 VPackSlice manually, see:
    https://www.arangodb.com/docs/stable/drivers/spring-data-reference-mapping.html#invoking-conversion-manually

  20. e7raem commented on Sep 14, 2023

    @e7raem

    @rashtao this pr is a year already. why no approve it #249

  21. rashtao commented on Sep 19, 2023

    @rashtao
    Member

    @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)

  22. rashtao commented on Jun 18, 2025

    @rashtao
    Member

    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.

  23. kowalski-wlodzimierz commented on Mar 11, 2026

    @kowalski-wlodzimierz

    any news regarding the support for Spring Data @transactional annotation?

  24. rashtao commented on Mar 12, 2026

    @rashtao
    Member

    This is still on hold, see here: #80 (comment)

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions