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

Remove slow join from activity search #17250

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 7, 2020

Overview

This removes the unindexed join from activity search. The join is used to apply component
permission filtering and to retrieve the activity_type - however, this latter is still rendered
by the pseudoconstant handling

Before

Slow join

After

Faster

Technical Details

Comments

Will need some performance testing on a site that uses ACLs once we have seen if tests fail.

On sites without ACLs it should be clearly faster.

@civibot civibot bot added the master label May 7, 2020
@civibot
Copy link

civibot bot commented May 7, 2020

(Standard links)

@seamuslee001
Copy link
Contributor

Test fails look related @eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@jaapjansma I see you are testing - do you have any sites with ACLs & largish datasets. I haven't cleaned up the tests on this because I was hoping @andrew-cormick-dockery would get a chance to check this for performance. It performs better for contacts not subject to ACLs

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@seamuslee001
Copy link
Contributor

I did some testing of this on the AUG test infrastructure and didn't notice any significant deterioration in performance. @eileenmcnaughton are you able to fix the test failures

@seamuslee001
Copy link
Contributor

Jenkins re test this please

This removes the unindexed join from activity search. The join is used to apply component
permission filtering and to retrieve the activity_type - however, this latter is still rendered
by the pseudoconstant handling
@seamuslee001
Copy link
Contributor

Test fail unrelated

@seamuslee001 seamuslee001 merged commit bd1d54e into civicrm:master Jun 29, 2020
@seamuslee001 seamuslee001 deleted the act_search branch June 29, 2020 22:27
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.

2 participants