Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29416

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      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 Unassigned
            Reporter:
            amit.gupta@sendergen.com Amit Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: