Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-2948

RESTful read performance: identityExists() is called twice before searching user entry

    XMLWordPrintable

    Details

    • Rank:
      1|hzo2wf:

      Description

      On test environment using 10.1.0 Xpress1 using LDAP, REST read triggered 4 SRCH requests

      2 isExist() call ... one coming from IdentityServicesImpl.read() and the other one coming from IdentityServicesImpl.getAMIdentity()
      [30/Aug/2013:10:46:39 +1200] SEARCH REQ conn=23 op=6 msgID=250 base="uid=testuser0004,ou=people,dc=openam,dc=forgerock,dc=org" scope=baseObject filter="(|(objectclass=)(objectclass=ldapsubentry))" attrs="ALL"
      [30/Aug/2013:10:46:39 +1200] SEARCH RES conn=23 op=6 msgID=250 result=0 nentries=1 etime=1
      [30/Aug/2013:10:46:53 +1200] SEARCH REQ conn=23 op=7 msgID=251 base="uid=testuser0004,ou=people,dc=openam,dc=forgerock,dc=org" scope=baseObject filter="(|(objectclass=)(objectclass=ldapsubentry))" attrs="ALL"
      [30/Aug/2013:10:46:53 +1200] SEARCH RES conn=23 op=7 msgID=251 result=0 nentries=1 etime=1

      1 group membership check ... IdentityServicesImpl.convertToIdentityDetails() calling AMIdentity.getMemberships
      [30/Aug/2013:10:47:04 +1200] SEARCH REQ conn=23 op=8 msgID=252 base="ou=groups,dc=openam,dc=forgerock,dc=org" scope=wholeSubtree filter="(&(objectclass=groupOfUniqueNames)(uniqueMember=uid=testuser0004,ou=people,dc=openam,dc=forgerock,dc=org))" attrs="dn"
      [30/Aug/2013:10:47:04 +1200] SEARCH RES conn=23 op=8 msgID=252 result=0 nentries=0 etime=1

      1 search for user attribute ... IdentityServicesImpl.convertToIdentityDetails() calling AMIdentity.getAttributes
      [30/Aug/2013:10:47:04 +1200] SEARCH REQ conn=23 op=9 msgID=253 base="uid=testuser0004,ou=people,dc=openam,dc=forgerock,dc=org" scope=baseObject filter="(|(objectclass=*)(objectclass=ldapsubentry))" attrs="sn"
      [30/Aug/2013:10:47:04 +1200] SEARCH RES conn=23 op=9 msgID=253 result=0 nentries=1 etime=1

      2 calls to identityExists is probably redundant and therefore needs to be optimized.

        Attachments

          Activity

            People

            Assignee:
            sachiko Sachiko Wallace
            Reporter:
            sachiko Sachiko Wallace
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: