IBM DB2 Database Software Developers' Guide to Optimum SQL Performance

This document is about DB2 Developer's Guide to Optimum SQL Performance.


IBM DB2 Database Software Developers' Guide to Optimum SQL Performance - cover page
Brand
IBM
Category
Other software
Document type
Other
Language
English
Pages
38
File format
PDF
File size
587 KB
Published
01 December, 2023
Updated
01 December, 2023
Model
DB2
MD5 checksum
062528BE842209AB22AA973E50C59C1C

About this manual

This IBM document is the DB2 Developers' Guide to Optimum SQL Performance, Session 1708 by Tom Beavin. It outlines techniques for writing efficient SQL, including efficient predicates, minimizing SQL traffic, multi-row operations, avoiding sorting, and choosing literals versus variables.

The presentation explains how predicates influence access paths and covers indexable versus non-indexable predicates, index matching and screening, and residual predicates. It also includes IBM copyright and trademark disclaimers and links to DB2 community resources.

What's inside

  • Write efficient predicates
  • Minimize SQL traffic
  • Use multi-row operations
  • Avoid sorting whenever possible
  • Only touch columns and rows you need
  • Literals vs. variables
  • Subqueries vs Joins
  • OPTIMIZE FOR n ROWS
  • Index Matching
  • Index Screening

Frequently asked questions

What traits does the document list for a well-performing SQL query?

It lists an efficient form, accurate statistics, optimal optimizer settings, and adequate system resources.

What do predicates influence?

Predicates are described as a prime influence on access paths and can have a huge impact on query performance.

What does index matching do?

Index matching restricts the range of data retrieved and defines START and STOP keys on the index.

Download PDF (587 KB)

More IBM Manuals


View all IBM manuals →