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

Add index to civicrm_activity.status_id

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.17
    • Fix Version/s: 4.7.19
    • Component/s: Core CiviCRM
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Adding an index to this Activity column speeds up reports and searching dramatically in large databases where status is used as a filter.

      ALTER TABLE `civicrm_activity` ADD INDEX (`status_id`);

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              stoob Stoob
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: