googleapis / googleapis/google-cloud-java

[java-firestore] Firestore TransactionManager and explicit commit/rollback

Đang mở
#13,148 1 bình luận 3 reaction 0 người được giao Xem trên GitHub
api: firestore type: question
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

Hello again,

Another aspect of Spring Data for Firestore we're making is `@Transactional` annotation support. Basically the user annotates a method with that annotation and every operation inside the method is supposed to be done inside a single transaction.

Right now we see there is only the option of running a given anonymous function inside a transaction and logically this can work as we need it to. However, Spring Framework comes with a ton of boilerplate and support around this that essentially assumes the old-fashioned transaction manager / explicit commit/ rollback is available like from old-fashioned SQL databases.

Are there plans to add this explicit transactionmanager and control to Firestore?

We actually had this exact same situation with the Spanner client lib, but fortunately a few months after we got started the transactionmanager was added. Are there such plans for Firestore?

teammates: @meltsufin @elefeint @dmitry-s @dzou

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.