两种写法

db.fs_file.find({path: /^/101zl|^/105x0|^/105t2/105t3/1JY|^/105t2/105t3/1dG|^/105t2/105t3/1tP|^/105t2/105t3/207|^/105t2/105t3/Xx/})
db.fs_file.find({path:{$regex: "^(/101zl|/105x0|/105t2/105t3/1JY|/105t2/105t3/1dG|/105t2/105t3/1tP|/105t2/105t3/207|/105t2/105t3/Xx)"}},{path:1,fid:1})

十万条数据匹配5000条,大概查询时间300ms