DB2 9 for z/os Selected Query Performance Enhancements
|
|
- Justin Thornton
- 5 years ago
- Views:
Transcription
1 Session: C13 DB2 9 for z/os Selected Query Performance Enhancements James Guo IBM Silicon Valley Lab May 10, :40 a.m. 11:40 a.m. Platform: DB2 for z/os 1
2 Table of Content Cross Query Block Optimization Generalize Sparse Index and In Memory Data Caching More Statistics to Improve Access Path Query Parallelism Enhancements Summary 2 2
3 Query Performance Problems Global Query Optimization addresses query performance problems caused when DB2 breaks a query into multiple parts and optimizes each of those parts independently. SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T2, T3 WHERE T2.C2 = T3.C2 AND T2.C1 = T1.C1); DB2 will break this query into 2 parts (the correlated subquery and the outer query) and each of these parts will be optimized independently. The access path for the subquery does not take into account the different ways in which the table in the outer query may be accessed and vice-versa. While each of the individual parts may be optimized to run efficiently, when these parts are combined the overall result may be inefficient. 3 Global Query Optimization, addresses query performance problems caused when DB2 breaks a query into multiple parts and optimizes each of those parts independently. While each of the individual parts may be optimized to run efficiently, when these parts are combined the overall result may be inefficient. For example, consider the following query: SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T2, T3 WHERE T2.C2 = T3.C2 AND T2.C1 = T1.C1); DB2 will break this query into 2 parts (the correlated subquery and the outer query) and each of these parts will be optimized independently. The access path for the subquery does not take into account the different ways in which the table in the outer query may be accessed and vice-versa. DB2 may choose to do a table scan of T1, resulting in much random I/O when accessing T2, while a nonmatching index scan of T1 would avoid the random I/O on T2. In addition, DB2 will not consider reordering these 2 parts. The correlated subquery will always be performed after accessing T1 to get the correlation value. If T1 is a large table, and T2 is a small table, it may be much more efficient to access T2 first and then T1 (especially if there is no index on T2.C1 but there is an index on T1.C1). In summary, Global Query Optimization will allow DB2 to optimize a query as a whole rather than as independent parts. This is accomplished by allowing DB2 to: 1. Consider the effect of one queryblock on another 2. Consider reordering queryblocks 3
4 Functional description The purpose of this enhancement is to improve query performance by enhancing the DB2 Optimizer so that more efficient access paths are generated for queries that involve multiple parts. There is no new function per se. EXPLAIN output will be modified to make it easier to tell what the execution sequence is for these types of queries. 4 Functional Description The purpose of this enhancement is to improve query performance by enhancing the DB2 Optimizer so that more efficient access paths are generated for queries that involve multiple parts. The changes are within the DB2 Optimizer and the DB2 Runtime components. There is no new function per se. However, DB2 does document in some detail the way in which a query that involves multiple parts is performed. Also, since the way in which a query with multiple parts will be performed is no longer fixed to the way in which the query was coded, the EXPLAIN output will be modified to make it easier to tell what the execution sequence is for these types of queries. 4
5 Problem scenario 1 Large Non-correlated subquery is materialized SELECT * FROM SMALL_TABLE A WHERE A.C1 IN (SELECT B.C1 FROM BIG_TABLE B) BIG_TABLE is scanned and put into workfile SMALL_TABLE is joined with the workfile Much more efficient if scan / materialization of BIG_TABLE was avoided SELECT * FROM SMALL_TABLE A WHERE EXISTS (SELECT 1 FROM BIG_TABLE B WHERE B.C1 = A.C1) Allows matching index access on BIG_TABLE 5 Subquery Processing All subqueries will now be processed by the DB2 Optimizer differently than before, and the new processing is summarized as follows: The subquery itself is represented as a virtual table in the FROM clause containing the predicate with the subquery This virtual table may be moved around within the referencing query in order to obtain the most efficient sequence of operations Predicates may be derived from the correlation references in the subquery and also from the subquery SELECT list These predicates can be applied to either the subquery tables or the tables containing the correlated columns depending on the position of the virtual table When determining the access path for a subquery, the context in which the subquery occurs will be taken into consideration When determining the access path for a query that references a subquery, the effect the access path has on the subquery will be taken into consideration. 5
6 Problem scenario 2 Large outer table scanned rather than using matching index access SELECT * FROM BIG_TABLE A WHERE EXISTS (SELECT 1 FROM SMALL_TABLE B WHERE A.C1 = B.C1) BIG_TABLE is scanned to obtain A.C1 value SMALL_TABLE gets matching index access Much more efficient to get matching index access on BIG_TABLE SELECT * FROM BIG_TABLE A WHERE A.C1 IN (SELECT B.C1 FROM SMALL_TABLE B) SMALL_TABLE scanned and put in workfile Allows matching index access on BIG_TABLE 6 6
7 Performance improvements Improve Query Performance Consider both correlated and non-correlated forms of a given query Consider the inter-query block combinations Select the form / combination with the lowest overall estimated cost 7 7
8 Enhanced Optimizer costing Cost both Correlated and Non-correlated Forms of the Query Internally represent the query in both it s correlated and non-correlated forms and let the Optimizer cost each Final access path choice is deferred until the whole query has been costed Once the final access path is selected remove the form (correlated or non-correlated) that was not selected Allows most efficient overall access path to be selected 8 8
9 EXPLAIN Output Correlated subquery Additional row to represent a subquery which has considered both correlated and non-correlated forms TNAME for subquery will be DSNWFQB(nn) where nn is the queryblock number associated with the subquery Correlated subquery access Subquery is the inner table, join method is nested loop join (METHOD=1) New access type added to show correlated subquery access ACCESSTYPE= O 9 EXPLAIN Output The EXPLAIN output in the PLAN_TABLE will be modified to show virtual tables which are materialized to a workfile. The table name for a virtual table will use a naming convention similar to that used for MQB s (mini-queryblocks). The name will include an indicator of the queryblock number of the associated subquery (i.e. DSNVT(02) ). The table type for virtual tables that are materialized will be "W" for "Workfile". Virtual tables that are not materialized will not be shown in the EXPLAIN output. 9
10 EXPLAIN Output Non-correlated subquery Non-correlated subquery access Always involves a workfile. This workfile can be either the inner table, or the outer table. When workfile is the outer table, the workfile is scanned (ACCESSTYPE= R ) When workfile is the inner table, sparse index access will be used to access the workfile (ACCESSTYPE= R, PRIMARY_ACCESSTYPE= T ) Join method in either case is nested loop join or hybrid join 10 EXPLAIN Output The EXPLAIN output in the PLAN_TABLE will be modified to show virtual tables which are materialized to a workfile. The table name for a virtual table will use a naming convention similar to that used for MQB s (mini-queryblocks). The name will include an indicator of the queryblock number of the associated subquery (i.e. DSNVT(02) ). The table type for virtual tables that are materialized will be "W" for "Workfile". Virtual tables that are not materialized will not be shown in the EXPLAIN output. 10
11 Additional column PARENT_PLANNO Used with PARENT_QBLOCKNO (existing column) to connect child queryblock to parent miniplan For correlated subqueries it corresponds to the plan number in the parent queryblock where the correlated subquery is invoked. For non-correlated subqueries it corresponds to the plan number in the parent queryblock that represents the workfile for the subquery. IFCID 22 changes to stay in sync with EXPLAIN change New field to hold the value of the PARENT_PLANNO column 11 Also, a new column is added to the PLAN_TABLE called "PARENT_PLANNO". For correlated subqueries it corresponds to the plan number in the parent queryblock where the correlated subquery is invoked. For non-correlated subqueries it corresponds to the plan number in the parent queryblock that represents the workfile for the subquery. 11
12 Other considerations INSERT, UPDATE and DELETE INSERT, UPDATE and DELETE statements that contain the types of subqueries discussed previously will be handled the same as SELECT statements that contain these subqueries. No special consideration needs be given to INSERT, UPDATE and DELETE. 12 INSERT, UPDATE, DELETE INSERT, UPDATE and DELETE statements that contain the types of subqueries discussed previously will be handled the same as SELECT statements that contain these subqueries. No special consideration need be given to INSERT, UPDATE and DELETE. Optimization Hints Optimization hints will be supported. Since the EXPLAIN output is enhanced to show the virtual tables and the position in which the virtual table is accessed, that information can be fed into the DB2 Optimizer as a hint using the existing Optimization hints support. For example, this means users will have the ability to request that a non-correlated subquery be processed in it s correlated form. Or, that a correlated subquery be processed in its decorrelated form. This allows for greater control over how a query is processed without requiring a change to the way in which the query is coded. 12
13 DB2 for z/os Limits The maximum number of tables that can be specified in a single SQL statement is 225. Generation of virtual tables can cause the total number of tables to exceed 225. This is OK as long as the total number of tables after generation of virtual tables does not exceed 512. Unlikely, but if total exceeds 512 then a 101 SQLCODE will be returned 13 Limits for DB2 for z/os The maximum number of tables that can be specified in a single SQL statement is 225. However, the generation of virtual tables can cause the total number of tables to exceed 225. This is OK as long as the total number of tables after generation of virtual tables does not exceed 512. In the unlikely case that the total number of tables would exceed 512 then a 101 SQLCODE will be returned 13
14 Application Programming & Performance DB2 will be less sensitive to how a particular query is coded in terms of access path selection (the major factor in query performance). It is now less important whether the query is coded as a correlated subquery or as a non-correlated subquery. In many cases, DB2 will be able to consider both forms and select the more efficient one. This means that if a query was coded a certain way specifically to get a certain access path, that access path may no longer be selected by DB2. 14 Application Programming Users should be aware that these changes should make DB2 less sensitive to how a particular query is coded in terms of access path selection (the major factor in query performance). This means that with the addition of this line item, it is less important whether the query is coded as a correlated subquery or as a non-correlated subquery. DB2 should be able to select the best access path regardless of which form the query was coded in. This also means that if a query was coded a certain way specifically to get a certain access path, that access path may no longer be selected by DB2. This might result in these types of queries needing to be retuned to resolve query performance issues. Performance Monitoring and Tuning The changes to the EXPLAIN output will effect it's usage in access path analysis and tuning. Users should be aware of these changes and how to interpret the new EXPLAIN output. In addition, these changes may result in some query performance degradation. Users should be aware of what to look for and how to resolve these types of problems when they are encountered. 14
15 Generalize Sparse Index Before V9 What is sparse index? What is In-memory work file? Sparse index is used in non-correlated subquery starting in V4 Sparse index or In-memory work file (IMWF) is used in Star Join 15 15
16 More Sparse Index Usage in V9 DB2 use sparse index or IMWF internally for tables which do not have appropriate index in order to improve performance Base Table Materialized View Materialized Table Expression Temporary Table Materialized Virtual Table 16 16
17 Sparse Index in V9 Sparse index or IMWF can be used to access the inner table of nested-loop join, sort new table is required DB2 determines whether to use sparse index or IMWF at runtime depending on the available storage 17 17
18 Query Performance Improvement Avoid sorting a large outer table in a sortmerge join when inner table does not have index. Use sparse index or IMWF in the inner table of nested-loop join More efficient search in the inner table work file Significant IO reduction More exploitation of query parallelism Up to 2X query performance improvement observed 18 18
19 Restriction Sparse index is not used when The join method is not nested-loop join The inner table has index on the join column It is correlated subquery The target table is in a MERGE statement The predicate is not equi-join predicate The columns of join predicate have unmatched CCSID 19 19
20 Why Use Histogram Statistics? Family compatibility LUW has it Customer requirement Improve Query Performance 20 20
21 Scenario 1 Example#1: Sparse and dense ranges SALES_DATE BETWEEN AND returns significantly more rows than a 2 week range in March Query: SELECT * FROM T WHERE T.C1 between a sparse range SELECT * FROM T WHERE T.C1 between a dense range 21 21
22 Scenario 2 Example#2: When gaps exist in ranges SAP uses INTEGER (or worse, VARCHAR) to store YEAR- MONTH data. There are 12 values in ~200512, but zero value in ~ Query: SELECT * FROM T WHERE T.C1 between a skipped range SELECT * FROM T WHERE T.C1 between a non-skipped range Query: T.C1 between and ; 90 valid numerics, but only 2 valid dates T.C1 between and ; 12 valid numerics, and 12 valid dates 22 22
23 Scenario 3 Example#3: Non-existed values out of [lowkey, highkey] range DB2 only records the 2 nd highest/lowest value for a column. Hard to detect any out-of-range value. Query: SELECT * FROM T WHERE T.C1 = non-existed value All 3 examples: Facts: C1 column cardinality is 10,000(or bigger) Today: need to collect all 10,000(or more) distinctive values in frequency stats 23 23
24 Syntax RUNSTATS TABLESPACE 24 24
25 Syntax RUNSTATS INDEX 25 25
26 Equal-depth Histogram RUNSTATS will produce equal-depth histogram, i.e. each interval (range) will have about the same number of rows (not the same number of values). Maximum number of intervals is 100 Same value stays in the same interval NULL value has its own interval Possible skipped gaps between intervals Possible interval containing single value only 26 26
27 Example Table T of TRANSACTIONS, column C1 of TRANSACTION_DATE as DATE type. QuantileNo Lowvalue Null Highvalue Null Cardf FrequencyF 2.1% 1.8% 2.0% 5% 1.7% % 27 27
28 Catalog New columns are added to SYSCOLDIST, SYSKEYTGTDIST QUANTILENO LOWVALUE HIGHVALUE All three new columns are updatable The new columns are also added to 4 more tables. SYSCOLDIST_HIST, SYSCOLDISTSTATS, SYSKEYTGTDIST_HIST, SYSKEYTGTDISTSTATS 28 28
29 RUNSTATS RUNSTATS TABLESPACE on column or column groups Sort is needed, if Frequency Statistics is also specified, then they share the same sort RUNSTATS INDEX For index with key columns of mixed order, histogram stats can only be collected on the prefix columns with same order. If the specified key columns for histogram statistics are of mixed order, a warning message DSNU633 is issued REORG TABLESPACE and LOAD do NOT support HISTOGRAM statistics
30 Access Path Selection Use histogram statistics to evaluate predicate selectivity RANGE/LIKE/BETWEEN predicate All fully qualified intervals, plus Interpolation of partially qualified intervals Also helps EQ, ISNULL, INLIST and COL op COL EQ/ISNULL/INLIST a single-value interval matched the searching literal, or Interpolation within the covering interval COL op COL Pair up two histogram intervals which satisfy operator OP. Histogram improves predicate selectivity estimation 30 30
31 Performance Use histogram statistics to improve query performance Collect histogram stats for RANGE/LIKE/BETWEEN predicate Observed up to 2X elapsed time and/or cpu time improvement for several queries Better join sequence reduces data, index and work file getpages 31 31
32 Query Parallelism Enhancements Partition on inner table of the nested-loop join if the outer table is materialized work file Enable more query parallelism for correlated subquery when the query is decorrelated Enhanced query parallelism costing More balanced partitions to reduce query elapsed time 32 32
33 Summary Significant query performance enhancements from Cross query block optimization More usage in sparse index and IMWF More statistics to improve access path More query parallelism 33 33
34 Session: C13 DB2 for z/os Selected Query Performance Enhancements James Guo IBM, Silicon Valley Lab 34 34
What s new in DB2 9 for z/os for Applications
What s new in DB2 9 for z/os for Applications Patrick Bossman bossman@us.ibm.com Senior software engineer IBM Silicon Valley Lab 9/8/2009 Disclaimer Copyright IBM Corporation [current year]. All rights
More informationMore Ways to Challenge the DB2 z/os Optimizer. Terry Purcell IBM Silicon Valley Lab
More Ways to Challenge the DB2 z/os Optimizer Terry Purcell IBM Silicon Valley Lab Agenda Introduction Process for validating the preferred access path Filter Factor Challenges Predicate Challenges Conclusion
More informationDB2 for z/os Optimizer: What have you done for me lately?
Session: A08 DB2 for z/os Optimizer: What have you done for me lately? Terry Purcell IBM Silicon Valley Lab 14 th October 2008 16:45 17:45 Platform: DB2 for z/os You can always read about the features/enhancements
More informationDo these DB2 10 for z/os Optimizer Enhancments apply to me?
Do these DB2 10 for z/os Optimizer Enhancments apply to me? Andrei Lurie IBM Silicon Valley Lab February 4, 2013 Session Number 12739 Agenda Introduction IN-list and complex ORs Predicate simplification
More informationDb2 for z/os: Lies, Damn lies and Statistics
Db2 for z/os: Lies, Damn lies and Statistics SEGUS & SOFTWARE ENGINEERING GmbH Session code: A18 05.10.2017, 11:00 Platform: Db2 for z/os 1 Agenda Quotes Quotes Basic RUNSTATS knowledge Basic RUNSTATS
More informationQuery Optimization Ways of DB2 to Improve Database Performance
Query Optimization Ways of DB2 to Improve Database Performance 1 School of Software Engineering, Tongji University Shanghai, 201804, P.R.China E-mail:billtangjf@tongji.edu.cn Zewen Hua a, Jinsong Feng
More informationFundamentals of DB2 Query Optimization
Session: Fundamentals of DB2 Query Optimization Michelle Guo IBM, Silicon Valley Lab May 08, 2007 09:20 a.m. 10:20 a.m. Platform: Through this 1-hr session, we will walk through the
More informationQuerying Data with Transact SQL
Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including
More information7. Query Processing and Optimization
7. Query Processing and Optimization Processing a Query 103 Indexing for Performance Simple (individual) index B + -tree index Matching index scan vs nonmatching index scan Unique index one entry and one
More informationControl your own destiny with Optimization Hints
Control your own destiny with Optimization Hints Patrick Bossman IBM Silicon Valley Lab December 13, 2006 Columbia, MD 1 Agenda Overview Reasons for using Environment setup Preparation Sample cases Verifying
More informationWhat s new from the Optimizer in DB2 11 for z/os?
What s new from the Optimizer in DB2 11 for z/os? 赵雄伟 DB2 z/os Level 2 support zhaoxw@cn.ibm.com 1 Agenda Plan Management Predicate Indexability In-Memory Data Cache (sparse index) Duplicate Removal DPSIs
More informationDB2 10 for z/os Optimization and Query Performance Improvements
DB2 10 for z/os Optimization and Query Performance Improvements James Guo DB2 for z/os Performance IBM Silicon Valley Lab August 11, 2011 6 PM 7 PM Session Number 9524 Disclaimer Copyright IBM Corporation
More informationCopyright 2016 Ramez Elmasri and Shamkant B. Navathe
CHAPTER 19 Query Optimization Introduction Query optimization Conducted by a query optimizer in a DBMS Goal: select best available strategy for executing query Based on information available Most RDBMSs
More informationQuery tuning with Optimization Service Center
Session: F08 Query tuning with Optimization Service Center Patrick Bossman IBM May 20, 2008 4:00 p.m. 5:00 p.m. Platform: DB2 for z/os 1 Agenda Overview of Optimization Service Center Workload (application)
More information20461: Querying Microsoft SQL Server 2014 Databases
Course Outline 20461: Querying Microsoft SQL Server 2014 Databases Module 1: Introduction to Microsoft SQL Server 2014 This module introduces the SQL Server platform and major tools. It discusses editions,
More informationRevival of the SQL Tuner
Revival of the SQL Tuner Sheryl Larsen BMC Session code: F16 9:20 AM Thursday, May 3, 2018 Db2 for z/os Competing More Optimize Drowning Resources, What in Pressures Data You More Have! Problems Drowning
More informationCreating indexes suited to your queries
Creating indexes suited to your queries Jacek Surma PKO Bank Polski S.A. Session Code: B11 Wed, 16th Oct 2013, 11:00 12:00 Platform: DB2 z/os Michał Białecki IBM Silicon Valley / SWG Cracow Lab In every
More informationMANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)
Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 6 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA
More informationCA Chorus for DB2 Database Management
CA Chorus for DB2 Database Management CA Performance Handbook for DB2 for z/os Version 04.0.00 This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter
More informationDB2 UDB: App Programming - Advanced
A Access Methods... 8:6 Access Path Selection... 8:6 Access Paths... 5:22 ACQUIRE(ALLOCATE) / RELEASE(DEALLOCATE)... 5:14 ACQUIRE(USE) / RELEASE(DEALLOCATE)... 5:14 Active Log... 9:3 Active Logs - Determining
More informationWhat Developers must know about DB2 for z/os indexes
CRISTIAN MOLARO CRISTIAN@MOLARO.BE What Developers must know about DB2 for z/os indexes Mardi 22 novembre 2016 Tour Europlaza, Paris-La Défense What Developers must know about DB2 for z/os indexes Introduction
More informationShort Summary of DB2 V4 Through V6 Changes
IN THIS CHAPTER DB2 Version 6 Features DB2 Version 5 Features DB2 Version 4 Features Short Summary of DB2 V4 Through V6 Changes This appendix provides short checklists of features for the most recent versions
More informationDB2 12 for z/os Optimizer Sneak Peek
DB2 12 for z/os Optimizer Sneak Peek Terry Purcell IBM Silicon Valley Lab Session Code: @Alabama Tuesday Oct 4th Platform: DB2 for z/os Disclaimer Information regarding potential future products is intended
More informationDB2 for z/os and OS/390 Performance Update - Part 1
DB2 for z/os and OS/390 Performance Update - Part 1 Akira Shibamiya Orlando, Florida October 1-5, 2001 M15a IBM Corporation 1 2001 NOTES Abstract: The highlight of major performance enhancements in V7
More informationSomething to think about. Problems. Purpose. Vocabulary. Query Evaluation Techniques for large DB. Part 1. Fact:
Query Evaluation Techniques for large DB Part 1 Fact: While data base management systems are standard tools in business data processing they are slowly being introduced to all the other emerging data base
More informationTo REORG or not to REORG That is the Question. Kevin Baker BMC Software
To REORG or not to REORG That is the Question Kevin Baker BMC Software Objectives Identify I/O performance trends for DB pagesets Correlate reorganization benefits to I/O performance trends Understand
More informationQuerying Data with Transact-SQL
Course 20761A: Querying Data with Transact-SQL Page 1 of 5 Querying Data with Transact-SQL Course 20761A: 2 days; Instructor-Led Introduction The main purpose of this 2 day instructor led course is to
More informationHOLDDATA FOR DB2 9.1 PUT Level ** Please read through all the holddata before acting on any of it. ** GENERAL
HOLDDATA FOR DB2 9.1 PUT Level 0806 ** Please read through all the holddata before acting on any of it. ** GENERAL 1. Rebind all static DB2 application which match criteria. Member REBIND DSN910.SVSC.HOLDCNTL
More informationOracle SQL Tuning for Developers Workshop Student Guide - Volume I
Oracle SQL Tuning for Developers Workshop Student Guide - Volume I D73549GC10 Edition 1.0 October 2012 D78799 Authors Sean Kim Dimpi Rani Sarmah Technical Contributors and Reviewers Nancy Greenberg Swarnapriya
More informationORACLE TRAINING CURRICULUM. Relational Databases and Relational Database Management Systems
ORACLE TRAINING CURRICULUM Relational Database Fundamentals Overview of Relational Database Concepts Relational Databases and Relational Database Management Systems Normalization Oracle Introduction to
More informationDb2 12 for z/os Optimizer Update
IBM & IDUG 2018 Data Tech Summit Db2 12 for z/os Optimizer Update Terry Purcell IBM Dec 12 th, 2018 #Db2World #IDUGDb2 #IBMDb2 IBM z Analytics Agenda Db2 12 Performance Focus UNION ALL & Outer Join Enhancements
More informationQuerying Data with Transact SQL Microsoft Official Curriculum (MOC 20761)
Querying Data with Transact SQL Microsoft Official Curriculum (MOC 20761) Course Length: 3 days Course Delivery: Traditional Classroom Online Live MOC on Demand Course Overview The main purpose of this
More informationAVANTUS TRAINING PTE LTD
[MS20461]: Querying Microsoft SQL Server 2014 Length : 5 Days Audience(s) : IT Professionals Level : 300 Technology : SQL Server Delivery Method : Instructor-led (Classroom) Course Overview This 5-day
More informationDB2 12 for z Optimizer
Front cover DB2 12 for z Optimizer Terry Purcell Redpaper Introduction There has been a considerable focus on performance improvements as one of the main themes in recent IBM DB2 releases, and DB2 12
More informationDB2 SQL Tuning Tips for z/os Developers
DB2 SQL Tuning Tips for z/os Developers Tony Andrews IBM Press, Pearson pic Upper Saddle River, NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid Cape Town Sydney
More informationInterpreting Explain Plan Output. John Mullins
Interpreting Explain Plan Output John Mullins jmullins@themisinc.com www.themisinc.com www.themisinc.com/webinars Presenter John Mullins Themis Inc. (jmullins@themisinc.com) 30+ years of Oracle experience
More informationAdministrivia. CS 133: Databases. Cost-based Query Sub-System. Goals for Today. Midterm on Thursday 10/18. Assignments
Administrivia Midterm on Thursday 10/18 CS 133: Databases Fall 2018 Lec 12 10/16 Prof. Beth Trushkowsky Assignments Lab 3 starts after fall break No problem set out this week Goals for Today Cost-based
More informationV9 Migration KBC. Ronny Vandegehuchte
V9 Migration Experiences @ KBC Ronny Vandegehuchte KBC Configuration 50 subsystems (15 in production) Datasharing (3 way) 24X7 sandbox, development, acceptance, production Timings Environment DB2 V9 CM
More informationSQL Query Writing Tips To Improve Performance in Db2 and Db2 Warehouse on Cloud
SQL Query Writing Tips To Improve Performance in Db2 and Db2 Warehouse on Cloud Calisto Zuzarte IBM St. Louis Db2 User s Group 201803 Tue, March 06, 2018 Db2 Warehouse Db2 Warehouse on Cloud Integrated
More informationQuerying Microsoft SQL Server 2008/2012
Querying Microsoft SQL Server 2008/2012 Course 10774A 5 Days Instructor-led, Hands-on Introduction This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL
More informationIBM Optim Query Workload Tuner for DB2 for z/os 4.1. Hands-on Labs
IBM Optim Query Workload Tuner for DB2 for z/os 4.1 Hands-on Labs INTRODUCTION... 2 SINGLE QUERY TUNING... 5 LAB 1 CUT COST AND OPTIMIZE PERFORMANCE... 7 1.1 GETTING STARTED... 8 1.2 CREATING A SAMPLE
More informationCOURSE OUTLINE: Querying Microsoft SQL Server
Course Name 20461 Querying Microsoft SQL Server Course Duration 5 Days Course Structure Instructor-Led (Classroom) Course Overview This 5-day instructor led course provides students with the technical
More informationOracle Database 11g: SQL Tuning Workshop. Student Guide
Oracle Database 11g: SQL Tuning Workshop Student Guide D52163GC10 Edition 1.0 June 2008 Author Jean-François Verrier Technical Contributors and Reviewers Muriel Fry (Special thanks) Joel Goodman Harald
More informationWhat s New from the Optimizer in DB2 11 for z/os?
What s New from the Optimizer in DB2 11 for z/os? par Terry Purcell, IBM Réunion du Guide DB2 pour z/os France Mardi 18 novembre 2014 Tour Europlaza, Paris-La Défense Agenda Plan Management Predicate Indexability
More informationQuerying Microsoft SQL Server
Querying Microsoft SQL Server Course 20461D 5 Days Instructor-led, Hands-on Course Description This 5-day instructor led course is designed for customers who are interested in learning SQL Server 2012,
More informationAdvanced Query Tuning with IBM Data Studio. Tony Andrews Themis
Advanced Query Tuning with IBM Data Studio Tony Andrews Themis Session code:????????? Thu, May 03, 2018 (09:20 AM - 10:20 AM) Platform: Both Db2 LUW and z/os 1 1 Objectives By the end of this presentation,
More informationOptimizer Challenges in a Multi-Tenant World
Optimizer Challenges in a Multi-Tenant World Pat Selinger pselinger@salesforce.come Classic Query Optimizer Concepts & Assumptions Relational Model Cost = X * CPU + Y * I/O Cardinality Selectivity Clustering
More informationPass IBM C Exam
Pass IBM C2090-612 Exam Number: C2090-612 Passing Score: 800 Time Limit: 120 min File Version: 37.4 http://www.gratisexam.com/ Exam Code: C2090-612 Exam Name: DB2 10 DBA for z/os Certkey QUESTION 1 Workload
More informationz/os Db2 Batch Design for High Performance
Division of Fresche Solutions z/os Db2 Batch Design for High Performance Introduction Neal Lozins SoftBase Product Manager All tests in this presentation were run on a dedicated zbc12 server We used our
More informationOracle Database 11g: SQL Tuning Workshop
Oracle University Contact Us: Local: 0845 777 7 711 Intl: +44 845 777 7 711 Oracle Database 11g: SQL Tuning Workshop Duration: 3 Days What you will learn This Oracle Database 11g: SQL Tuning Workshop Release
More informationContents. Why You Should Read This Book by Tom Ramey... i About the Authors... v Introduction by Surekha Parekh... xv
Contents Why You Should Read This Book by Tom Ramey... i About the Authors... v Introduction by Surekha Parekh... xv DB2 12 for z/os: Technical Overview and Highlights by John Campbell and Gareth Jones...
More informationQuest Central for DB2
Quest Central for DB2 INTEGRATED DATABASE MANAGEMENT TOOLS Supports DB2 running on Windows, Unix, OS/2, OS/390 and z/os Integrated database management components are designed for superior functionality
More informationQuerying Microsoft SQL Server 2012/2014
Page 1 of 14 Overview This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation
More informationOverview of Implementing Relational Operators and Query Evaluation
Overview of Implementing Relational Operators and Query Evaluation Chapter 12 Motivation: Evaluating Queries The same query can be evaluated in different ways. The evaluation strategy (plan) can make orders
More informationAnswer: Reduce the amount of work Oracle needs to do to return the desired result.
SQL Tuning 101 excerpt: Explain Plan A Logical Approach By mruckdaschel@affiniongroup.com Michael Ruckdaschel Affinion Group International My Qualifications Software Developer for Affinion Group International
More informationOracle Database 12c: SQL Tuning for Developers
Oracle Database 12c: SQL Tuning for Developers Student Guide Volume I D79995GC10 Edition 1.0 December 2016 D84109 Learn more from Oracle University at education.oracle.com Author Dimpi Rani Sarmah Technical
More informationQuerying Microsoft SQL Server
20461 - Querying Microsoft SQL Server Duration: 5 Days Course Price: $2,975 Software Assurance Eligible Course Description About this course This 5-day instructor led course provides students with the
More informationCOURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014
COURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014 MODULE 1: INTRODUCTION TO MICROSOFT SQL SERVER 2014 This module introduces the SQL Server platform and major tools. It discusses editions, versions,
More informationQuerying Microsoft SQL Server
Querying Microsoft SQL Server 20461D; 5 days, Instructor-led Course Description This 5-day instructor led course provides students with the technical skills required to write basic Transact SQL queries
More informationParser: SQL parse tree
Jinze Liu Parser: SQL parse tree Good old lex & yacc Detect and reject syntax errors Validator: parse tree logical plan Detect and reject semantic errors Nonexistent tables/views/columns? Insufficient
More informationDB2 9 for z/os V9 migration status update
IBM Software Group DB2 9 for z/os V9 migration status update July, 2008 Bart Steegmans DB2 for z/os L2 Performance Acknowledgement and Disclaimer i Measurement data included in this presentation are obtained
More informationQuerying Data with Transact-SQL
Querying Data with Transact-SQL Course: 20761 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2016 Duration: 24 HRs. ABOUT THIS COURSE This course is designed to introduce
More informationExploring Best Practices and Guidelines for Tuning SQL Statements
Exploring Best Practices and Guidelines for Tuning SQL Statements Ami Aharonovich Oracle ACE & OCP Ami@DBAces.co.il Oracle ACE Who am I Oracle Certified Professional DBA (OCP) Founder and CEO, DBAces Oracle
More information20461D: Querying Microsoft SQL Server
20461D: Querying Microsoft SQL Server Course Details Course Code: Duration: Notes: 20461D 5 days This course syllabus should be used to determine whether the course is appropriate for the students, based
More informationCS330. Query Processing
CS330 Query Processing 1 Overview of Query Evaluation Plan: Tree of R.A. ops, with choice of alg for each op. Each operator typically implemented using a `pull interface: when an operator is `pulled for
More informationArrays are a very commonly used programming language construct, but have limited support within relational databases. Although an XML document or
Performance problems come in many flavors, with many different causes and many different solutions. I've run into a number of these that I have not seen written about or presented elsewhere and I want
More informationDB2 UDB: Application Programming
A ABS or ABSVAL... 4:19 Access Path - Determining... 10:8 Access Strategies... 9:3 Additional Facts About Data Types... 5:18 Aliases... 1:13 ALL, ANY, SOME Operator... 3:21 AND... 3:12 Arithmetic Expressions...
More information"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary
Course Summary Description This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation
More informationOverview of Query Evaluation. Overview of Query Evaluation
Overview of Query Evaluation Chapter 12 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Overview of Query Evaluation v Plan: Tree of R.A. ops, with choice of alg for each op. Each operator
More informationDB2 Optimization Service Center DB2 Optimization Expert for z/os
DB2 Optimization Service Center DB2 Optimization Expert for z/os Jay Bruce, Autonomic Optimization Mgr jmbruce@us.ibm.com Important Disclaimer THE I NFORMATI ON CONTAI NED I N THI S PRESENTATI ON I S PROVI
More informationQuest SQL Optimizer for IBM DB2 z/os 5.6. User Guide
Quest SQL Optimizer for IBM DB2 z/os 5.6 User Guide Contents About Quest SQL Optimizer for IBM DB2 z/os 9 Optimize SQL 9 About Quest SQL Optimizer for IBM DB2 z/os 10 Optimize SQL 10 About Product Improvement
More informationOracle 9i Application Development and Tuning
Index 2NF, NOT 3NF or BCNF... 2:17 A Anomalies Present in this Relation... 2:18 Anomalies (Specific) in this Relation... 2:4 Application Design... 1:28 Application Environment... 1:1 Application-Specific
More informationPerformance Topics for DB2 Application Tuners
Platform: z/os Application Development Performance Topics for DB2 Application Tuners Sheryl M. Larsen Sheryl M. Larsen, Inc. September 10, 2008 MWDUG Chicago, IL DB2 is a Registered Trademark of IBM Corporation
More informationCopyright 2012, Oracle and/or its affiliates. All rights reserved.
1 Oracle Partitioning für Einsteiger Hermann Bär Partitioning Produkt Management 2 Disclaimer The goal is to establish a basic understanding of what can be done with Partitioning I want you to start thinking
More informationPerformance Optimization for Informatica Data Services ( Hotfix 3)
Performance Optimization for Informatica Data Services (9.5.0-9.6.1 Hotfix 3) 1993-2015 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic,
More information20461: Querying Microsoft SQL Server
20461: Querying Microsoft SQL Server Length: 5 days Audience: IT Professionals Level: 300 OVERVIEW This 5 day instructor led course provides students with the technical skills required to write basic Transact
More informationDB2 11 for z/os Application Functionality (Check out these New Features) Randy Ebersole IBM
DB2 11 for z/os Application Functionality (Check out these New Features) Randy Ebersole IBM ebersole@us.ibm.com Please note IBM s statements regarding its plans, directions, and intent are subject to change
More informationQuery Optimization. Introduction to Databases CompSci 316 Fall 2018
Query Optimization Introduction to Databases CompSci 316 Fall 2018 2 Announcements (Tue., Nov. 20) Homework #4 due next in 2½ weeks No class this Thu. (Thanksgiving break) No weekly progress update due
More information20761 Querying Data with Transact SQL
Course Overview The main purpose of this course is to give students a good understanding of the Transact-SQL language which is used by all SQL Server-related disciplines; namely, Database Administration,
More informationFirebird in 2011/2012: Development Review
Firebird in 2011/2012: Development Review Dmitry Yemanov mailto:dimitr@firebirdsql.org Firebird Project http://www.firebirdsql.org/ Packages Released in 2011 Firebird 2.1.4 March 2011 96 bugs fixed 4 improvements,
More informationDatenbanksysteme II: Caching and File Structures. Ulf Leser
Datenbanksysteme II: Caching and File Structures Ulf Leser Content of this Lecture Caching Overview Accessing data Cache replacement strategies Prefetching File structure Index Files Ulf Leser: Implementation
More informationIBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs
IBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs Day(s): 5 Course Code: CL442G Overview Learn how to tune for optimum the IBM DB2 9 for Linux, UNIX, and Windows relational
More informationTeradata SQL Features Overview Version
Table of Contents Teradata SQL Features Overview Version 14.10.0 Module 0 - Introduction Course Objectives... 0-4 Course Description... 0-6 Course Content... 0-8 Module 1 - Teradata Studio Features Optimize
More informationHOLDDATA FOR DB2 9.1 PUT Level ** Please read through all the holddata before acting on any of it. ** GENERAL
HOLDDATA FOR DB2 9.1 PUT Level 0805 ** Please read through all the holddata before acting on any of it. ** GENERAL 1. Rebind all static DB2 application which match criteria. Member REBIND DSN910.SVSC.HOLDCNTL
More informationDeep Dive Into Storage Optimization When And How To Use Adaptive Compression. Thomas Fanghaenel IBM Bill Minor IBM
Deep Dive Into Storage Optimization When And How To Use Adaptive Compression Thomas Fanghaenel IBM Bill Minor IBM Agenda Recap: Compression in DB2 9 for Linux, Unix and Windows New in DB2 10 for Linux,
More informationQUERYING MICROSOFT SQL SERVER COURSE OUTLINE. Course: 20461C; Duration: 5 Days; Instructor-led
CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: QUERYING MICROSOFT SQL SERVER Course: 20461C; Duration: 5 Days; Instructor-led WHAT YOU WILL LEARN This 5-day instructor led course provides students with
More informationCourse Outline. Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led
Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led About this course This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days
More informationQuerying Microsoft SQL Server 2014
Querying Microsoft SQL Server 2014 Course: 20461 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2014 Duration: 40 Hours ABOUT THIS COURSE This forty hours of instructor-led
More informationDB2 for LUW Advanced Statistics with Statistical Views. John Hornibrook Manager DB2 for LUW Query Optimization Development
DB2 for LUW Advanced Statistics with Statistical Views John Hornibrook Manager DB2 for LUW Query Optimization Development 1 Session Information Presentation Category: DB2 for LUW 2 DB2 for LUW Advanced
More informationThe DB2Night Show Episode #89. InfoSphere Warehouse V10 Performance Enhancements
The DB2Night Show Episode #89 InfoSphere Warehouse V10 Performance Enhancements Pat Bates, WW Technical Sales for Big Data and Warehousing, jpbates@us.ibm.com June 27, 2012 June 27, 2012 Multi-Core Parallelism
More informationQuerying Data with Transact-SQL
Querying Data with Transact-SQL 20761B; 5 Days; Instructor-led Course Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can
More informationDATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11
DATABASE PERFORMANCE AND INDEXES CS121: Relational Databases Fall 2017 Lecture 11 Database Performance 2 Many situations where query performance needs to be improved e.g. as data size grows, query performance
More informationWorkload Insights Without a Trace - Introducing DB2 z/os SQL tracking SOFTWARE ENGINEERING GMBH and SEGUS Inc. 1
Workload Insights Without a Trace - Introducing DB2 z/os SQL tracking 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 1 Agenda What s new in DB2 10 What s of interest for geeks in DB2 10 What s of interest
More informationDevelopment in a Virtualized Production Environment
Development in a Virtualized Production Environment True DB2 performance simulation covering Environment changes Schema changes Application changes Ulf Heinrich SEGUS, Inc u.heinrich@segus.com 2012 SOFTWARE
More information20761B: QUERYING DATA WITH TRANSACT-SQL
ABOUT THIS COURSE This 5 day course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge
More information[AVNICF-MCSASQL2012]: NICF - Microsoft Certified Solutions Associate (MCSA): SQL Server 2012
[AVNICF-MCSASQL2012]: NICF - Microsoft Certified Solutions Associate (MCSA): SQL Server 2012 Length Delivery Method : 5 Days : Instructor-led (Classroom) Course Overview Participants will learn technical
More informationQuerying Data with Transact-SQL
Querying Data with Transact-SQL General Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students
More informationMIS NETWORK ADMINISTRATOR PROGRAM
NH107-7475 SQL: Querying and Administering SQL Server 2012-2014 136 Total Hours 97 Theory Hours 39 Lab Hours COURSE TITLE: SQL: Querying and Administering SQL Server 2012-2014 PREREQUISITE: Before attending
More informationAnnouncement. Reading Material. Overview of Query Evaluation. Overview of Query Evaluation. Overview of Query Evaluation 9/26/17
Announcement CompSci 516 Database Systems Lecture 10 Query Evaluation and Join Algorithms Project proposal pdf due on sakai by 5 pm, tomorrow, Thursday 09/27 One per group by any member Instructor: Sudeepa
More informationListing of SQLSTATE values
Listing of values 1 of 28 5/15/2008 11:28 AM Listing of values The tables in this topic provide descriptions of codes that can be returned to applications by DB2 UDB for iseries. The tables include values,
More information