Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.24
-
Fix Version/s: 4.7.27
-
Component/s: CiviCRM API, Core CiviCRM, Import
-
Labels:
-
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.