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.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |