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

Add in method to allow extensions to opt out of using temporary table… #15701

Conversation

seamuslee001
Copy link
Contributor

… when building ACL Contact Cache

Overview

This adds in getter and setter functions and a static class variable to determine if temporary table should be used when building the ACL contact Cache

Before

Temporary Table always used

After

Temporary table used by default unless class variable set to not

Technical Details

in AUG we use the Multisite extension and one of the permissions it adds is "View all Contacts in domain" which is separate from View All Contacts so the core code when say loading an mailing will trigger a cache build. In one of our domains we have > 400K contacts that users with the permission View all contacts in domain for that domain can see which means we can easily run into Temporary Table is full errors. This was after we had increased the tmp_table_size and max_heap_table_size variables. So this gives us a way of using either the multisite extension or some other extension telling it to not use a temporary table to build the ACL Contact Cache for these users

ping @eileenmcnaughton @mattwire @monishdeb

@civibot
Copy link

civibot bot commented Nov 1, 2019

(Standard links)

@civibot civibot bot added the master label Nov 1, 2019
@eileenmcnaughton
Copy link
Contributor

@seamuslee001 OK - but the fact you need this points to the source of your performance issues..... so you are still getting a performance improvement with the fixed-up-locks only?

@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton yes we are however its now run into this other problem which isn't a performance issue more blocker on people doing work, we are planning to put this in very early next week

@eileenmcnaughton
Copy link
Contributor

OK - I think this had better be in the same release as adding temp tables as possible

@eileenmcnaughton eileenmcnaughton merged commit c796d7a into civicrm:master Nov 3, 2019
@seamuslee001 seamuslee001 deleted the allow_extensions_to_override_acl_temp_table_use branch November 3, 2019 20:34
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