You can create attribute indexes to locate and retrieve
the frequently used attributes faster.
Procedure
- Log in with the directory server instance owner credentials.
- To create an index for the seeAlso attribute,
run the following command:
ldapmodify -p port -D adminDN -w adminPW -i filename
where, filename contains the following entries: dn: cn=schema
changetype: modify
replace: attributetypes
attributetypes: ( 2.5.4.34
NAME 'seeAlso'
DESC 'Identifies another directory server entry that may
contain information related to this entry.'
SUP 2.5.4.49
EQUALITY 2.5.13.1
USAGE userApplications )
-
replace: ibmattributetypes
ibmattributetypes: ( 2.5.4.34
DBNAME( 'seeAlso''seeAlso' )
ACCESS-CLASS normal
LENGTH 1000
EQUALITY )
- Run the runstats command against the
directory server to update the DB2® statistics
after you create an index.
idsrunstats -I instance_name
where, instance_name is the directory server
instance name.