Configure the FILLFACTOR value
Procedure
-
Check if
FILLFACTORis already configured for the attribute.Before updating the attribute schema definition, run the following command to verify that theIBMAttributetypesdefinition includes theFILLFACTORkeyword:idsldapsearch -h <hostname> -p <port> -D <admin_user> -w <password> -b cn=schema -s base objectclass=* IBMAttributetypes | grep -i fillfactorIf the attribute already has a configured
FILLFACTORvalue, proceed to Step 3 to modify the existing configuration. Otherwise, continue with Step 2. -
Configure and add the
FILLFACTORkeyword to theIBMAttributetypesdefinition in the schema file.SyntaxIBMAttributetypes=( <OID> DBNAME( 'dbname1 ' 'dbname2' ) [other-keywords] FILLFACTOR <value> )ExampleIBMAttributetypes=( mobileoid DBNAME( 'mobile' 'mobile' ) ACCESS-CLASS normal LENGTH 32 FILLFACTOR 10 )Run the following command to apply the schema update:
-
Create an LDIF file named
schema_update.ldifto update theIBMAttributetypesdefinition.Example LDIF filedn: cn=schema changetype: modify replace: attributetypes attributetypes: ( mobileoid NAME ( 'mobile' 'mobileTelephoneNumber' ) DESC 'Identifies the entrys mobile or cellular phone number.' SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 USAGE userApplications ) - replace: IBMAttributetypes IBMAttributetypes: ( mobileoid DBNAME( 'mobile' 'mobileTelephoneNumber' ) ACCESS-CLASS normal LENGTH 32 FILLFACTOR 10 ) -
Run the following command to apply the schema update.
idsldapmodify -h <hostname> -p <port> -D <adminDN> -w <password> -i schema_update.ldif
-
Create an LDIF file named
-
To modify an existing
FILLFACTORvalue, repeat the schema update procedure with the new value in the LDIF file and reapply the change by usingidsldapmodify.FILLFACTORaffects only pages written after the configuration change. RunVACUUM FULLorREINDEXon the affected table or index so that existing data can benefit from the new setting. -
Run the following command to verify the configured FILLFACTOR value for the attribute table:
psql -c "SELECT relname, reloptions FROM pg_class WHERE relname = 'mobile';"Example outputrelname | reloptions --------------+------------------- mobile | {fillfactor=10} (1 row)Note: The FILLFACTOR value must be 10 or greater.