Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-21677 reduce unnecessary joins in reports #11898

Merged
merged 1 commit into from
Mar 31, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 29, 2018

Overview

Remove joins in

  • Contribute/Detail
  • Contribute/History
  • Contribute/HouseholdSummary
  • Contribute/OrganizationSummary
  • Contribute/Recur

Before

unnecessary joins to phone, email and address tables

After

unnecessary joins to phone, email and address tables

Technical Details

This also aligns the approach with that used in the extended report extension - there might be some notices as I have updated the extension where the signature differs from core but will need to drop a new release & people will need to be on it.

I also added the code to add the sql to the developer tab to the Contribute/Detail report. This report currently has some outstanding breakage & I think better sql visibility will help

Comments

@yashodha @jitendrapurohit


@jitendrapurohit
Copy link
Contributor

reviewing this

Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested all the modified reports. All are working as expected.

@eileenmcnaughton eileenmcnaughton merged commit 370c6b2 into civicrm:master Mar 31, 2018
@eileenmcnaughton eileenmcnaughton deleted the min_report branch March 31, 2018 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants