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

Better detection of regular expression constant prefix

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.1
    • Affects Version/s: None
    • Component/s: JavaScript, Querying
    • Labels:
      None

      Documentation states: "For regular expressions of the form /^''normalchars''.*/, the database will use an index when available and appropriate."

      However, the definition of "normal chars" as space, ascii letters and digits is hugely restrictive. For instance, our ids are URL paths. All of them of course starting with a /, making the indexes totally useless for our purposes.

      Please have a look at:

      http://github.com/kali/mongo/commit/d1664437ef4b1c0dab490522f55521bcb6b04cc1

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            kali Mathieu Poumeyrol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: