Download Performance Guide for Informix Dynamic Server, Version 7.3

Transcript
Chapter
Improving Individual Query
Performance
Using a Dedicated Test System .
.
.
.
.
.
.
.
.
.
.
.
.
10
.
.
10-4
Improving Filter Selectivity . . . . . . . . . . . . . . . .
Avoiding Difficult Regular Expressions . . . . . . . . .
Avoiding Noninitial Substrings . . . . . . . . . . . .
10-5
10-5
10-6
Updating Statistics . . . . . . . . . . . . . . . . . . . 10-6
Creating Data Distributions . . . . . . . . . . . . . . 10-7
UPDATE STATISTICS Performance Considerations . . . . . . 10-10
How to Improve Performance with Indexes . . . . .
Replacing Autoindexes with Permanent Indexes .
Using Composite Indexes . . . . . . . . .
Using Indexes for Data Warehousing Applications
Dropping and Rebuilding Indexes After Updates
. . . . . 10-11
. . . . . 10-11
. . . . . 10-11
. . . . . 10-12
. . . . . 10-14
Improving Sequential Scans .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 10-14
Reducing the Impact of Join and Sort Operations . . . . . . . . 10-15
Avoiding or Simplifying Sort Operations . . . . . . . . 10-15
Using Parallel Sorts . . . . . . . . . . . . . . . . 10-16
Using Temporary Tables to Reduce Sorting Scope . . . . . 10-16
Reviewing the Optimization Level
.
.
.
.
.
.
.
.
.
.
.
.
. 10-18
Optimizing User-Response Time for Queries . . . . . . . . . .
How to Specify the Query Performance Goal . . . . . . . .
Preferred Query Plans for User-Response-Time Optimization . . .
Nested-Loop Joins Versus Hash Join . . . . . . . . . .
Table Scans Versus Index Scans . . . . . . . . . . . .
Ordering with Fragmented Indexes . . . . . . . . . .
10-18
10-19
10-20
10-21
10-22
10-22