0

我正在从 mongodb 读取超过 1 亿条记录,并在 neo4j 中创建节点和关系。每当我在执行某些记录后运行此命令时,我都会得到 pymongo.errors.CursorNotFound: cursor id "..." not found early when I was executed without "no_cursor_timeout=True" in the mongodb query then at every 64179 records I get同样的错误,但在 StackOverflow 上查找此错误后,我尝试添加 no_cursor_timeout=True 但现在也出现了 2691734 值,我得到了同样的错误。我怎样才能摆脱这个错误我也尝试过定义批量大小。

4

1 回答 1

0

根据 Belly Buster 提到的票,您应该尝试:

  • 手动指定要用于所有操作的会话,以及
  • 使用该会话 ID 定期 ping 服务器以使其在服务器上保持活动状态
于 2020-04-22T00:22:31.127 回答