'mongodb regex query performance issues
I am using mongo java client. I can see x100 slower queries when using regex as compared to normal query for same document. All documents are indexed on field used in query. How do i improve query performance when using regex for searching in mongodb ?
Solution 1:[1]
Indexes don't work on regex in mongodb.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Shrinivas Kalangutkar |