Lesson 3: Checking for table fragmentation

To check for table fragmentation (for example, CALL sa_table_fragmentation( 'tablefrag' );) run the sa_table_fragmentation system procedure . If the number of segments per row is greater than 1.1, then table fragmentation is present. Higher degrees of fragmentation may negatively impact performance. See sa_table_fragmentation system procedure.

The table you created in this tutorial should have a fragmentation value of approximately 1.9.

In Interactive SQL, run the following SQL statement to reduce table fragmentation:

REORGANIZE TABLE tablefrag;

See REORGANIZE TABLE statement.

See also