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

Better detection of regular expression constant prefix

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.3.1
    • None
    • JavaScript, Querying
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: