DEV Community

Discussion on: How to find a document in mongo using the partial value of a field

Collapse
 
djnitehawk profile image
Dĵ ΝιΓΞΗΛψΚ

partial matching like this with regex will not use a text index so performance will be bad on large collections. prefixed regexes will use the index afaik. so you might wanna mention that in the article. thanks for posting!