0

How to match number using regexp in mongo faster than where

I am using where but it is verry slow!

Code: "$where": "/.*123.*/.test(this.status)" or "$where": "/.*sometext.*/.test(this.status)"

(I would like to match string too)

favok20149
  • 489
  • 2
  • 5
  • 6

0 Answers0