GodotFirebase icon indicating copy to clipboard operation
GodotFirebase copied to clipboard

[FEATURE REQUEST] Implementation of transactions for Firestore

Open iRedFox opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Its hard to sync data between all players. As an example, if three players are contributing to a global field value on the database. If all them did update on the same time, there will be desyncronization.

Describe the solution you'd like Transcations for Firestore

Describe alternatives you've considered Realtime database

Additional context Add any other context or screenshots about the feature request here.

iRedFox avatar May 11 '22 03:05 iRedFox

Not sure what you mean by transactions.

But on js, firestore has snapshot options which allow you to sync collections or documents and get live modifications.

Implementing snapshots into godot firebase would be a huuuuge addition to it since its a feature most godot programmer will need.

hjiul avatar Nov 22 '22 01:11 hjiul

Unfortunately we cannot do that - snapshots in that sense require a gRPC implementation that we can't provide. Transactions are different. They are where you open a transaction, commit some changes, and submit it all in one "action". This feature is for transactions, not for snapshot syncing. This will make it so multiple updates sent at the same time won't desync your data, which is what your original complaint was. If that's not what you intended, we can either close this or leave it, since people do want transactions.

WolfgangSenff avatar Nov 22 '22 02:11 WolfgangSenff