firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
201 stars 34 forks source link

[Question] Billing when using SetAsync with a FirestoreData object #433

Closed Nyankoo closed 1 year ago

Nyankoo commented 1 year ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the question here:

The billing documentation is quite clear regarding what actions get billed, but I just want to make sure I understand the specific instance of writing a whole object to Firestore correctly.

When I have an object of a class that is marked with "FirestoreData" with a few "FirestoreProperty" properties and I then call "SetAsync(thatObject)", how is billing handled?

paulinon commented 1 year ago

Hi @Nyankoo,

Regardless of the number of fields being written in one operation, it still counts as one write. You may also refer to this video talking about Cloud Firestore's pricing for more information.

I'll be closing this for now. Feel free to reopen if you have any other questions.