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

Reduce load when rebuilding smartgroups by not getting unrequired fields

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.8
    • Fix Version/s: 4.7.2
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      When re-loading smart groups the query retrieves the group status & group contact id although the query sensible ONLY requests the contact_id.

      This is in order to display those fields on the group contacts list on the page accessed by clicking on 'contacts' from manage groups.

      I am submitting a limited patch to not add on the group_contact fields when the contact_id has been explicitly requested - which is what happens from the (ideally) high-performance CRM_Contact_BAO_GroupContactCache::add function with a unit test on respect for the requested parameters.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: