我正在扫描一个mongodb集合,它的大型文档包含大于16MB的。问题是,这个命令在大bson上停留了几分钟,最后mongodb中止了执行,而我对整个集合的扫描也没有完成。
有没有办法告诉mongodb跳过/忽略大于阈值的文档?For those who think that MongoDB cannot store values larger than 16<
当我试图从mongodb集合中获取数据时,我得到了以下异常。这个集合有非常庞大的数据。例外情况是:
com.mongodb.MongoQueryException: Query failed with error code 10334 and error message 'BSONObjsize: 24020168 (0x16E84C8) is invalid.Size must be between 0 and 16793600(16MB)' on server 1