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."

posted @ 2017-04-17 20:21  94cool  阅读(3957)  评论(0)    收藏  举报