一个组的 Idm picketlink 列表角色正在构建大量查询,FetchMode 和 Fettype 没有影响
Idm picketlink list roles of a group is building up lot of queries, FetchMode and Fettype has no impact
RelationshipQuery query = rm.createRelationshipQuery(Grant.class);
query.setParameter(Grant.ASSIGNEE, groups.toArray(new Group[groups.size()]));
return query.getResultList();
做了一些 RCA,发现整个实体都在加载,这会影响性能,因此创建本机查询以获取 groupRoles。
RelationshipQuery query = rm.createRelationshipQuery(Grant.class); query.setParameter(Grant.ASSIGNEE, groups.toArray(new Group[groups.size()])); return query.getResultList();
做了一些 RCA,发现整个实体都在加载,这会影响性能,因此创建本机查询以获取 groupRoles。