#176 - MYSQL Table Query (Speed) question
Good Afternoon,
This is more of a question than a feature request. We are using the Security Groups module on system that has lots of records in the 'securitygroups_records' table, when a Contact / Lead / Target is being deleted it is taking a long time to update the table and is causing it to Lock between updates. We done some tracing on this a we can locate the issue in the M2MRelationship module and the issue relates to the missing module name on a delete which means MYSQL cant use the indexes that are on this table.
This is becoming a particular problem on mass deletes, therefore I was wondering if we should look at adding a new index on this table, one that does not include the module field or if we should try a looking elsewhere? Any help would be greatly appreciated as the module itself is proving very useful.
Thank you
Ron
11 years ago
I'd advise testing it with a new index to see how it performs. Also, try purging records in the securitygroups_records table that no longer exists. Curious, are you using MyISAM or InnoDB? There may be an opportunity to tune your my.cnf to tweak out better performance as well.
11 years ago
We (actually our client) is using MyISAM but I think they will have to move to InnoDB for performance reasons. One of the developers has made a change to the add the module name in for Standard modules on the delete (update) and this seems to have made a difference, I can send you code if you are interested. Thanks
11 years ago
Sure, send it over. My name @ My name . com. I'll keep this open to see if there is a possibility to add/change the index on the table.
10 years ago
Doing some cleanup. Feel free to follow up as needed.