Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.8
-
Fix Version/s: 4.7.10
-
Component/s: None
-
Labels:
-
Documentation Required?:None
-
Sprint:4.7.10 Performance
-
Funding Source:Contributed Code
Description
The addition of an OR join in this line
https://github.com/civicrm/civicrm-core/pull/6141/files#diff-e54381bfdf51e31cab376c71ca0d66ffR2558
takes the query duration from effectively instant to over 1 minute for a group with 0 contacts in it. (queries are killed on the server after 1 minute) on a DB with 100k+ contacts & several hundred groups.
This query runs 25 times on the manage groups page so without the script killer would take min 25 minutes to load....