Firebase onWrite 算作额外读取吗?
Does Firebase onWrite count as extra read?
我想知道从 onWrite 云函数的“更改”快照访问数据是否算作我的账单的额外读取。
谢谢!
根据 documentation、
Cloud Firestore allows you to listen to the results of a query and get realtime updates when the query results change.
When you listen to the results of a query, you are charged for a read each time a document in the result set is added or updated. You are also charged for a read when a document is removed from the result set because the document has changed. (In contrast, when a document is deleted, you are not charged for a read.)
Also, if the listener is disconnected for more than 30 minutes (for example, if the user goes offline), you will be charged for reads as if you had issued a brand-new query.
这意味着您将在第 1 次读取收听者时付费,如果当前 snapshot
上有更改或写入,仅 会向您收费。
包含在触发您的 Cloud Function 的负载中的数据库中的数据不算作对您的数据库(Firestore 或实时数据库)的收费读取,因为它们是从现有数据流中提供的。
我想知道从 onWrite 云函数的“更改”快照访问数据是否算作我的账单的额外读取。
谢谢!
根据 documentation、
Cloud Firestore allows you to listen to the results of a query and get realtime updates when the query results change.
When you listen to the results of a query, you are charged for a read each time a document in the result set is added or updated. You are also charged for a read when a document is removed from the result set because the document has changed. (In contrast, when a document is deleted, you are not charged for a read.)
Also, if the listener is disconnected for more than 30 minutes (for example, if the user goes offline), you will be charged for reads as if you had issued a brand-new query.
这意味着您将在第 1 次读取收听者时付费,如果当前 snapshot
上有更改或写入,仅 会向您收费。
包含在触发您的 Cloud Function 的负载中的数据库中的数据不算作对您的数据库(Firestore 或实时数据库)的收费读取,因为它们是从现有数据流中提供的。