Better detection of regular expression constant prefix

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.1
    • Affects Version/s: None
    • Component/s: JavaScript, Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Stearn
              Reporter:
              Mathieu Poumeyrol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: