xiahe999 发表于 2018-10-26 10:39:28

mongodb避免的查询模式

  1少用count
  db.testcol1.find({xxx:15}).count()
  2 避免large-skip
  db.testcol1.find({xxx:15}).skip(100000).limit(10)
  3 不用not in

页: [1]
查看完整版本: mongodb避免的查询模式