更新时的 Firestore 计费

Firestore billing on update

如果我用与现有文档相同的内容更新文档,即使它没有对当前文档的内容进行任何更改,它也会算作一次写入吗?

换句话说,Firestore 是否在不检查文档中每个键的值的情况下更新文档?

If I update a document with the same content as the existing one, will it count as a write even if it doesn't change anything to the current document's content?

是的,确实如此。

In other words, does Firestore update the document without checking the values of each key inside the document?

是的,它会更新,它会覆盖整个文档,无论是否相同。 Firestore 没有检查文档是否相同的机制。你应该检查一下。