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)
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)