Skip to content

Commit

Permalink
Hotfix - Grupos de Seguridad - Índice para consultas de roles a parti…
Browse files Browse the repository at this point in the history
…r de grupos de seguridad (#391)
  • Loading branch information
enricsinergia authored Sep 23, 2024
1 parent e4d7389 commit c522b66
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions metadata/securitygroups_acl_rolesMetaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>true, 'default'=>'0')
),
'indices' => array(
array('name' =>'securitygroups_acl_rolespk', 'type' =>'primary', 'fields'=>array('id'))
array('name' =>'securitygroups_acl_rolespk', 'type' =>'primary', 'fields'=>array('id')),
// STIC-Custom 20240917 EPS: New index to speed up the query at modules/ACLActions/ACLAction.php
// https://github.com/SinergiaTIC/SinergiaCRM/pull/391
array('name' => 'idx_SG_roles', 'type' => 'index', 'fields' => array('securitygroup_id', 'role_id')),
// END STIC Custom
),
'relationships' => array(

'securitygroups_acl_roles' => array(
'lhs_module'=> 'SecurityGroups', 'lhs_table'=> 'securitygroups', 'lhs_key' => 'id',
'rhs_module'=> 'ACLRoles', 'rhs_table'=> 'acl_roles', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'securitygroups_acl_roles', 'join_key_lhs'=>'securitygroup_id', 'join_key_rhs'=>'role_id',
),
)
);
);

0 comments on commit c522b66

Please sign in to comment.