Firebase Cloud Functions中Firestore doc.get()偶发请求缓慢问题咨询
Firebase Firestore doc.get() 在Cloud Function中偶尔耗时2.5-3秒的问题
我发现一个特殊问题:在使用Firebase Firestore数据库的doc(DOC_ID).get()函数时,该函数通常运行良好且响应迅速,但在我的Cloud Function中偶尔会出现耗时2.5-3秒的情况。
相关代码如下:
console.log("StreamID", streamId) const stream = await admin.firestore() .collection(COLLECTION_PRODUCT_STREAMS) .doc(streamId).get(); console.log("Product stream obj", stream.id)
Google Cloud Function的日志截图:
内容的提问来源于stack exchange,提问作者Alexander Korolchuk
相关产品推荐
相关产品推荐

