mongodb多个OR条件怎么优化?
从逻辑出发优化。比如你a=xxx or b=yyy 这样没有办法。需要加一下 (a=xxx or b=yyy) and 一个时间范围。
我就是写个大概。真实语法不是这样。