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

Unnecessary expensive queries whenever the contribution selector is displayed

    Details

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

      Description

      When doing a query that results in the contribution selector being displayed it doesn't make sense to add a whole lot of expensive joins and retrieve large numbers of fields if we then don't display the result.

      When fields are not directly specified the 'defaultReturnProperties' are retrieved. Unfortunately these properties have been added onto over the years to include the properties that are required for specific searches in specific parts of the code. For example batch information is not relevant to the main contribution search screen. The batch screen should set it's own return properties - rather than contaminating the main array.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: