【发布时间】:2019-09-24 11:14:45
【问题描述】:
尝试使用 python 计算 firestore 集合中的文档数。当我使用db.collection('xxxx").stream() 时出现以下错误:
503 The datastore operation timed out, or the data was temporarily unavailable.
大约一半。它工作正常。代码如下:
docs = db.collection(u'theDatabase').stream()
count = 0
for doc in docs:
count += 1
print (count)
每次我在大约 73,000 条记录中收到 503 错误。有谁知道如何克服 20 秒超时?
【问题讨论】:
-
如果您认为这是一个错误,请直接联系 Firebase 支持。 support.google.com/firebase/contact/support?page=bug_or_feature
标签: python google-cloud-firestore