googleapis / googleapis/google-cloud-java

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

オープン
#13,148 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
api: firestore type: question
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。