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

dev/core#1486 Add index to civicrm_acl_cache.modified_date #16144

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Adds an index to the civicrm_acl_cache.modified_date column.

Existing installs will need to call System.updateindexes to benefit from this.

This should improve a query that commonly causes a deadlock - ie. DELETE FROM civicrm_acl_cache WHERE modified_date = .....

Before

No index

After

Ta da

Technical Details

Comments

@civibot
Copy link

civibot bot commented Dec 22, 2019

(Standard links)

@civibot civibot bot added the master label Dec 22, 2019
@seamuslee001 seamuslee001 merged commit 1ca18cc into civicrm:master Dec 23, 2019
@seamuslee001 seamuslee001 deleted the acl_index branch December 23, 2019 00:55
wmfgerrit pushed a commit to wikimedia/wikimedia-fundraising-crm that referenced this pull request Dec 23, 2019
Despite being basically empty this table is involved in deadlocks
frequently.

I've added this index upstream
civicrm/civicrm-core#16144
It should be super quick to run so won't require an outage.

I'm looking into further ways to improve contention on this table
https://lab.civicrm.org/dev/core/issues/1486

Bug: T182148
Change-Id: I82a1e9ca817326c1be1702e0d6189167d6c3f5a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants