Home About Courses Schedule Services Webinars Contact Search

Advanced Query Tuning with IBM Data Studio on Db2 for z/OS

SEE SCHEDULE

Duration: 3 Days

Method: Instructor led, Hands-on workshops

Price: $1800.00

Course Code: DB1037



View Related Video

Audience

Application Architects, analysts, developers and DBAs involved in the development and support of Db2/SQL applications.

Description

Get ready for a deep dive into Db2 for z/OS Optimization. This course is for the Db2 for z/OS development professional who desires to understand the fundamental issues associated with performance for SQL applications. Emphasis is placed on new considerations for the latest releases of Db2 and the use of IBM Data Studio as an optimization tool. Concepts discussed will be reinforced with appropriate workshops. This class covers optimization features and enhancements through V11. There are many hands on workshops during these 3 days where students are coding, explaining, and analyzing SQL statements. Students will come out of this class much stronger in the SQL language and Db2 optimization. Many times there are 2, 3, 4, 5 different ways to code SQL statements in getting the same result. Which way is best? These are discussed in great detail with Db2 explains to back them up. Of course ‘It Depends’!

Objectives

Upon successful completion of this course, the student will be able to:

  • Understand the different types of access paths and when each are desirable
  • Navigate through the features of the IBM Data Studio tool
  • Read through a Db2 visual explain
  • Understand new statistics available in the latest releases of Db2 and their impact on access path selection
  • Learn new optimization techniques available from Db2 9 optimizer (correlating and de-correlating) up through V11
  • Use the information provided by IBM Data Studio to improve the performance of Db2 applications

Prerequisites

A basic understanding of the SQL language is helpful.

Topics

  1. Optimization Goals & Tools
    • Goals of Optimization
    • Deciding what to tune
    • What causes CPU and I/O
      • Use of Functions, triggers, etc.
      • Keeping too much data too long
    • Optimizer overview
    • Explain output
      • PLAN_TABLE
      • DSN_STATEMNT_TABLE
      • Additional Explain Tables
    • Viewing explain output in IBM Data Studio
  2. Access Paths with IBM Data Studio
    • Single Table Access
      • Tablespace Scan
      • Sequential Prefetch
      • Index Scans
      • Index Screening
      • List Prefetch
    • Multiple Table Access
      • Optimizing Inner and Outer Joins
      • Join method selection
      • Sorting
      • Avoiding sorts
      • Join order
    • Predicate Transitive Closure
  3. Filter Factors & Performance
    • Catalog Statistics via IBM Data Studio
    • What is a filter factor?
    • Use in index selection
    • Use in join order selection
    • Use in join method selection
    • How are filter factors calculated?
  4. Predicate Types
    • Software levels
    • Predicate processing order
    • Viewing predicate details in IBM Data Studio
    • Stage 1 vs Stage 2 processing
  5. Case Studies in Optimizer Problems
    • Case 1: 2 Possible Indexes
    • Case 2: Join Order
    • Case 3: Range Predicates
    • Case 4: Host Variables
  6. Design for Performance
    • Index Only Access for screening and data retrieval
    • Clustering decisions
    • Multiple Index Access
    • Sort Avoidance
    • Index on Expression
    • Partitioning
  7. IBM Data Studio Features
    • Saving access paths as XML files
    • Building SQL statements
    • Formatting SQL statements
    • Explaining SQL statements
    • Query Formatting
    • Obtaining queries from packages
    • Generating Service SQL
    • Statistics Advisor
  8. Top 35+ Tuning Tips for Db2 SQL Developers
    • (and More)
    • SQL Standards and Guidelines
    • Programming guidelines
    • Db2 SQL Tuning Tips