Updating Statistics for a Data Partition

Maintaining data partition statistics can improve the performance of many queries.

  1. In the Administration Console view, select ASE Servers > Schema Objects > Tables > User Tables.
  2. Click the Name field of the table, then click the drop-down arrow and select Properties.
  3. In the left pane, click Partitions.
  4. Click the Name field of the partition, then click the drop-down arrow and select Update Statistics.
  5. On the Command Type screen, select the update statistics command to run.
  6. On the Hashing screen, select:
    • The type of hashing:
      • Partial hashing – for columns that have 65536 or fewer unique values.
      • With hashing – for columns that have more than 65536 unique values.
      • No hashing.
    • A value for max resource granularity (which indicates the maximum percentage of the systems resources a query can use), if applicable.
  7. On the Histogram Tuning screen, set the histogram tuning factor. The size of the histogram is established by multiplying the number of steps with the value for histogram tuning factor.
  8. On the Sampling screen, specify whether to set sampling, and to what percentage.
  9. On the Step Number screen, indicate whether to set the number of histogram steps, and how many.
  10. On the Summary screen, verify your selections.
  11. Click Finish.
Related tasks
Updating Statistics on a Table
Updating Statistics on an Index