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

Creating contacts is slow, part 2 of 2: Smart group caching

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      While profiling slow contact creation (CRM-21108) I saw that the smart group cache is cleared for every contact on a CLI import done using <civiroot>/bin/cli.class.php.

      GUI imports set the config flag "doNotResetCache" to work around this performance hit; it makes sense that CLI imports should as well.

      After CRM-21108 is applied, this cuts nearly 40% off of the time required to import contacts via CLI.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              palantejon Jon K Goldberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: