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

原文地址:https://www.cnblogs.com/94cool/p/6724637.html