Lesson 2: Identifying index fragmentation

Use this procedure to identify index fragmentation and to learn where to look for index fragmentation warnings. It is recommended that you periodically check for fragmentation warnings on your production database.

Note

The statements you executed in the previous procedure introduced index fragmentation. However, on some systems there might not be enough fragmentation to result in the warnings and recommendations described in this procedure.

To identify index fragmentation
  1. In Sybase Central, choose Mode » Application Profiling.

    If the Application Profiling Wizard does not appear, choose Application Profiling » Open Application Profiling Wizard.

  2. On the Welcome page, click Next.

  3. On the Profiling Options page, select Overall Database Performance Based On The Database Schema, and then click Next.

  4. On the Analysis File page, in the Save The Analysis To The Following File field, type C:\AppProfilingTutorial.

  5. Click Finish.

    A list of recommendations appear in the Application Profiling Details pane.

  6. To view more detail, double-click the Fragmented Indexes. A Recommendation window appears containing a SQL statement you can run to resolve the index fragmentation.