简体   繁体   中英

Is there a cost overhead to using transactions rather than sets in firebase?

I'm laying the foundation for all the server interactions in my game and i want to prevent myself from unnecessary high bills(previous game had over 180M+ gameplays)

In this particular game users can create levels and share them with each other. I want to keep track of the amount of gameplays on each level and thought about using transactions for this. However since 'gameplays' are not the most important metric i wondered what kind of overhead this ads in terms of costs when using transactions? And what is the trade-off when using just sets (i will probably lose a % of gameplays right?

Thanks in advance for your answer!

You dont pay for cpu usage in firebase. Therefore using transactions vs sets will not affect your billing.

You will pay for the amount of data saved/downloaded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM