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

mongodb regex without prefix performance issue

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.0
    • None
    • None

    Description

      I have performance issue when I try to use regex to do search for part of name
      example: db.names.find({name: { $regex: "ALEXANDER" }})
      (RDBMS: where name like %ALEXANDER%)

      What is the best practice to do similar search.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shaker.shady shaker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: