输入banner图图片脚本导航/分类

Mongodb $in $or 性能比较

 

MongoDB docs have the answer:

"When using $or with <expressions> that are equality checks for the value of the same field, choose the $in operator over the $or operator."

Mongodb $in $or 性能比较

标签:equal   reference   doc   mongodb   sam   man   check   ons   express