摘要: 由於find之後,loop執行時間過長導致timeout, cusor失效 解決方式有以下幾種: 1. 使用batch_size() cursor = collection.find({}).batch_size(30) 2. 將取出的cursor轉為list result = list(colle 阅读全文
posted @ 2019-08-25 08:52 日光之下无新事 阅读(293) 评论(0) 推荐(0) 编辑