简体   繁体   中英

Does Firestore document update request run if the value didn't change?

I'm quite new to Firebase and I was having this question:

What happens if I run an update request for a Firestore document and the data in the document and the one in the update request are the same? Does that update counts for Firebase billing? Or Firestore automatically detects that the data is the same and don't even run request?

Every update is billed. There are no "free" updates. If you want to avoid an update if nothing changed, you will have to read the document first and determine for yourself if you want to update.

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