dongsu1951 2016-07-05 19:36 采纳率: 0%
浏览 218
已采纳

MongoDB即使没有超时也“找不到光标”

Reported here, but I was told to post on StackOverflow

I'm trying to read the users from a forum database. Eventually, I want to put the data into PostgreSQL, but for now it just discards the data after reading it. My code is here.

The database is being told not to expire the cursor here, which calls this function, which sets no-timeout.

However, I'm getting an error here that says Cursor not found, cursor id: 28781399268 (the numbers change on every run) after going through about 96k of the 141k users.

  • 写回答

1条回答 默认 最新

  • duanduan1993 2016-07-06 01:28
    关注

    It turns out the Go MongoDB driver has a bug. I've submitted a fix here: https://github.com/go-mgo/mgo/pull/295

    It was setting the NoCursorTimeout flag on the wire message, but not the noCursorTimeout property on the query.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法