Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5297

add smart rewrite function from "%like%" to "match against"

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Filter

    Description

      1.
      Analyze, if query have conditions, which likely cause a full scan
      like

       tag LIKE '%aaaa%' OR LIKE '%bbbb%' 
      

      2.
      Check, if the column has a full text index.

      If 1. + 2. true rewrite the query to "match against" syntax,

      so

       tag LIKE '%aaaa%' OR LIKE '%bbbb%' 
      

      will be rewritten to

      MATCH(tag) AGAINST('+aaaa','+bbbb'  IN BOOLEAN MODE)
      

      This can improve application, where changing the queries is difficult like snow

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Richard Richard Stracke
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.