0

–第一个查询正常完成。
> db.runCommand({“distinct”:”usr”,”key”:”values”,”query”:{“num”:{“$lte”:772468}}}).values.length;
–772468
–同样的命令,将查询值扩大了1 就报错了
> db.runCommand({“distinct”:”usr”,”key”:”values”,”query”:{“num”:{“$lte”:772469}}}).values.length;
–2015-07-16T18:04:10.720+0800 TypeError: Cannot read property ‘length’ of undefined

我查阅了一些资料,说distinct的结果集不能超过16MB exception: distinct too big, 16mb cap

请问,这种问题有什么办法绕开或者解决吗?