Successfully distributing resources

The interactions among execution objects in an Adaptive Server environment are complex. Furthermore, every environment is different: each involves its own mix of client applications, logins, and stored procedures, and is characterized by the interdependencies between these entities.

Implementing execution precedence without having studied the environment and the possible implications can lead to unexpected (and negative) results.

For example, say you have identified a critical execution object and you want to raise its execution attributes to improve performance, either permanently or on a per-session basis. If the execution object accesses the same set of tables as one or more other execution objects, raising its execution priority can lead to performance degradation due to lock contention among tasks at different priority levels.

Because of the unique nature of every Adaptive Server environment, Sybase cannot provide a detailed procedure for assigning execution precedence that makes sense for all systems. However, this section provides guidelines, procedures to try, and a discussion of common issues.

Figure 4-1 shows the steps involved in assigning execution attributes.

Figure 4-1: Process for assigning execution precedence

Image shows a flow chart of how Adaptive Server assgns execution attributes. There are 6 steps: Analyzing the environment, understanding the concepts, and assigning performance attributes. If it makes sense to continue with these resources, end the job, if it doesn’t make sense, monitor and analyze results and check performance.
  1. Study the Adaptive Server environment:

  2. Understand the effects of using execution classes:

    See n.

  3. Assign execution classes and any independent engine affinity attributes.

  4. After making execution precedence assignments, analyze the running Adaptive Server environment:

    See “Results analysis and tuning”.

  5. Fine-tune the results by repeating steps 3 and 4 as many times as necessary.

  6. Monitor the environment over time.