我想循环抛出我的MongoDB的特定集合上的所有文档。但是,由于光标超时,我所做的每一次尝试都失败了。这是我的密码const url = "my connection URI" message: 'cursor does not exist, was killed or timed out' }
我需要检索大约50000个文档,所以我需要
我正在用java编写一个程序,它从MongoDB中读取查询结果。if(output !System.out.println("This user name who tweeted "+ cursor.next());
}
当我运行这段代码时,只有第一个游标值使用最后一行的sysout语句被打印出来,第二个值来自'for‘循环,结果是一个异常。sysout语句在cursor.next()之前一直打