Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-6245

Dedupe over substrings is slow due to bad MySQL indices

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      For some reason MySQL does not use existing indices when searching/comparing substrings (via SUBSTR(field, 1, lenght) - so even when they are at the beginning of a given field).

      In the case of substring-based dedupe rules we should create appropriate (substring-based) indices instead the current full-width ones.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              shot Piotr Szotkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: