by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

Optimizing SecuritySuite

Been on SecuritySuite for awhile now and need it to run faster? Here are a few things try:

Remove all of the deleted records in securitygroups_records.

delete from securitygroups_records where deleted = 1;

Then delete duplicates

delete r from securitygroups_records r
inner join securitygroups_records r2 on r.module = r2.module
    and r.record_id = r2.record_id and r2.deleted = 0
    and <> and r.date_modified > r2.date_modified
where r.deleted = 0;

Alternative Query Method

Depending on the database engine, it may be beneficial to enable an option to use a different query method. To try this add the following to your config_override.php:

$sugar_config['securitysuite_use_exists_query'] = true;

Other options

You can find records with many groups associated to it with (change table/count as desired):

select, count(1)
from meetings m
inner join securitygroups_records r on = r.record_id and r.module = 'Meetings' and r.deleted = 0
group by
having count( > 2;

Some other things to try: 1) Upgrade to at least MySQL 5.5 if you haven't already (200-360% performance boost). 2) Reassess how groups are being used 3) Make sure InnoDB is being used as the db engine 4) Disable list count queries in SugarCRM 5) Reassess and apply tuner recommendations ( 6) Optimize MySQL tables (mysqlcheck) 7) See if it's a specific module: select module, count(*) from securitygroups_records group by module; 8) Defrag the securitygroups_records table (after doing deletes):

ALTER TABLE securitygroups_records ENGINE=INNODB;
OPTIMIZE TABLE securitygroups_records;
Saving Comment Saving Comment...
  • "Outstanding plugin. Great flexibility - took a little time to learn about the options, but great to have them available." - tcorlett

    Read More Reviews