[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2131) Set return attributes in LDAPExtRoleModuleImpl#searchRole to improve performance

Martin Putz (JIRA) jira-events at lists.jboss.org
Fri Aug 22 06:25:39 EDT 2008


Set return attributes in LDAPExtRoleModuleImpl#searchRole to improve performance
--------------------------------------------------------------------------------

                 Key: JBPORTAL-2131
                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2131
             Project: JBoss Portal
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Portal Identity
    Affects Versions: 2.6.6 Final
            Reporter: Martin Putz
            Assignee: Boleslaw Dawidowicz


In the method searchRole in the class LDAPExtRoleModuleImpl the returning attributes for the ldap search are not set. This means that it is  returning all the dattribute data for a group (member attribute, for instance, where there can me a huge amount of data). This slows things up a lot.

As a performance enhancement suggestion the following should be added:

String[] retAttr = {getRidAttributeID(), getDisplayNameAttributeID()};
controls.setReturningAttributes(retAttr); 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list