使用no_cursor_timeout

            collection = self.db[tb_name]
cols = collection.find(no_cursor_timeout=True)
for col in cols:
# do something
cols.close()

最新文章

  1. 多线程爬坑之路-Thread和Runable源码解析
  2. bootstrap系列学习(一)
  3. Android编程: MVC模式、应用的生命周期
  4. codeigniter实现ajax分页
  5. C#导出数据的EXCEL模板设计
  6. Hadoop集群日常运维
  7. 方案:解决 wordpress 中 gravatar 头像被墙问题
  8. Git commit message和工作流规范
  9. C#图解教程 第十章 结构
  10. [BZOJ]4199: [Noi2015]品酒大会(后缀数组+笛卡尔树)
  11. 关于SpringCloud的微服务架构,提示502 Bad Gateway nginx/1.10.0
  12. With As 用法
  13. 苏宁基于Spark Streaming的实时日志分析系统实践 Spark Streaming 在数据平台日志解析功能的应用
  14. [solution] JZOJ-5795 词典
  15. Web API 令牌(秘钥是双方约定的,并不在网络连接上传输)
  16. 2019.01.23 ural1519 Formula 1(轮廓线dp)
  17. 【紫书】Undraw the Trees UVA - 10562 递归,字符串
  18. JS知识点整理(二)
  19. hdu-2620 Ice Rain---数论(取模运算规律)
  20. [洛谷P1822] 魔法指纹

热门文章

  1. mysql-SELECT子句的顺序
  2. call(),apply(),bind()区别?
  3. POJ 1015 Jury Compromise (算竞进阶习题)
  4. 【XSY3370】道路建设 最短路
  5. 简单记录一次getshell到进服务器的过程
  6. BUG-‘Tokenizer’ object has no attribute ‘oov_token’
  7. 安卓上用Termux终端模拟器安装MC Forge 1.12.2服务器!
  8. 构建之法助教园地第一次作业--点评<西北师范大学|李晓婷>
  9. 优雅的使用git
  10. mockplus 原型设计工具