我正在从 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 值,我得到了同样的错误。我怎样才能摆脱这个错误我也尝试过定义批量大小。
1213 次