'''
with MongoHandler.create() as base:
base['media']['media_data_{}'.format(kind)].insert(post)
self.logger.info("inserted to Media_data_{}".format(kind))
'''
操作 mongo 库只有这种插入的操作,但时不时会报如下错误:
'''
Cannot run getMore on cursor 112765575416, which was created in session 809cd1d1-d8bd-4dba-a80d-14868b85446f - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, in session e9ffe991-5468-4a4a-a1b6-9ff5be9406c0 - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
'''
度娘没查到,跪求大佬指点
1
kidlfy OP 那个 MongoHandler.create() 相当于 mongo 的一个 client
|