Details
- 
    Type:
Improvement
 - 
    Status: Done/Fixed
 - 
    Priority:
Major
 - 
    Resolution: Duplicate
 - 
    Affects Version/s: 4.3.5
 - 
    Fix Version/s: Unscheduled
 - 
    Component/s: None
 - 
    Labels:None
 
- 
        Documentation Required?:None
 - 
        Epic Link:
 - 
        Funding Source:Needs Funding
 
Description
Following on from CRM-12466 this bug reports the fact that the rebuild process for smart groups can exceed the allowed query time if there are a lot of smart groups / complex relationships in the group conditions.
In short a better method of invalidating and rebuilding the smart groups on contact add/delete is required. (this is hard because a contact add/delete could affect group membership indirectly because of relationships and so is not as simple as simply removing all smart group cache entries refering to the contact modified)