|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Book Excerpt Application of Optimization Tools
Detect and resolve query-level problems
Apr. 10, 2007 12:00 PM
Sybase ASE 15 supports the use of many optimization techniques and tools. The use of these tools requires an expert level of understanding since improper application of query optimization tools can degrade performance for ASE as a whole. In this excerpt, the following optimization techniques are discussed from a standpoint of how to recognize problems resulting from the improper application of optimization strategies in ASE 15.
To illustrate how optimization goals can affect query plans in an adverse manner, the following example shows the optimization goal of allrows_oltp employed on an OLTP system at the server level. As a first line of problem detection related to the incorrect employment of optimization goals, the set statistics io and set statistics time diagnostic commands are enabled.
select e.eventID, el.eventTypeCode, e.actualEndTime Statistics I/O, time with optimization goal of allrows_oltp:
Table: EventList scan count 1, logical reads: (regular=6 apf=0 total=6), physical reads: (regular=0 apf=0 total=0), Statistics I/O with no optimization goal set:
Table: EventList scan count 1, logical reads: (regular=6 apf=0 total=6), physical reads: (regular=0 apf=0 total=0), In this example, the logical I/O required to satisfy the query is adversely impacted due to the use of a poorly selected optimization goal. In terms of query performance degradation, the logical I/Os performed on the second scan of the event table where a poorly set optimization goal is employed increased to 24,189 in comparison to the 31 I/Os performed on the event table where the optimization goal is selected by the optimizer. The conclusion that can be drawn from this example is to use common sense when employing optimization goals! The query in this example is typical of a query performed on a DSS system. The optimization goal is set to allrows_oltp, an optimization strategy that is not appropriate for DSS queries. This example illustrates a more important point: Restrict the use of optimization goals to the most granular level possible, especially on systems where mixed query types are standard. For the server as a whole, leave the optimization goals at the default ASE setting, unless a great majority of queries issued in ASE would benefit from non-default optimization goals.
Optimization Criteria Performance Analysis
select e.eventID, el.eventTypeCode, e.actualEndTime Reader Feedback: Page 1 of 1
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||