all for $regex to be performant with end-string anchor

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we have millions of documents stored in a collection that use an email field with index. We would like to efficiently search through the collection for either a specific email address, or a domain name. The docs indicate that a query should start with a carrot for the regex to be used efficiently. We would love to be able to do the 2 following searches:

      /jdoe@example.com$/
      /@example.com$/

      Both could easily use the same index if they could be optimized.

            Assignee:
            Unassigned
            Reporter:
            Amit Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: