1少用count
db.testcol1.find({xxx:15}).count()
2 避免large-skip
db.testcol1.find({xxx:15}).skip(100000).limit(10)
3 不用not in
转载于:https://blog.51cto.com/9425473/1661217
1少用count
db.testcol1.find({xxx:15}).count()
2 避免large-skip
db.testcol1.find({xxx:15}).skip(100000).limit(10)
3 不用not in
转载于:https://blog.51cto.com/9425473/1661217