Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


Application of Optimization Tools
Detect and resolve query-level problems

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.

Optimization Goal Performance Analysis
Use optimization goals with caution. When optimization goals are altered by the database administrator, it may be necessary to periodically benchmark queries where optimization goals are employed. This benchmarking is necessary since the optimization goals instruct a query to perform optimization based upon known database usage patterns of OLTP, DSS, or mixed-use systems as an example. Over time, the usage balance of queries can change from one type to another, or the ratio of OLTP to DSS queries can change on a system. It is especially important to pay attention to the usage patterns on systems where optimization goals are set at a more broad level, such as at the server level.

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
from Event e,
EventList el
where e.eventID = el.eventID

and e.eventID = 4
and el.eventTypeCode = 1
and e.actualEndTime = (select min(e2.actualEndTime)
from Event e2
where e.eventID = e2.eventID)
go

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),
apf IOs used=0
Table: Event scan count 1, logical reads: (regular=95 apf=0 total=95), physical reads: (regular=0 apf=0 total=0),
apf IOs used=0
Table: Event scan count 756, logical reads: (regular=24189 apf=0 Total=24189), physical reads: (regular=0 apf=0
total=0), apf IOs used=0
Total writes for this command: 0
Execution Time 10.
SQL Server cpu time: 1000 ms. SQL Server elapsed time: 993 ms.

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),
apf IOs used=0
Table: Event scan count 1, logical reads: (regular=95 apf=0 total=95), physical reads: (regular=0 apf=0 total=0),
apf IOs used=0
Table: Event scan count 1, logical reads: (regular=31 apf=0 total=31), physical reads: (regular=0 apf=0 total=0),
apf IOs used=0
Total writes for this command: 0
Execution Time 0.
SQL Server cpu time: 0 ms. SQL Server elapsed time: 53 ms.

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
ASE 15 provides database administrators with a mechanism to specify query optimization criteria, such as the ability to suggest join strategies for queries through abstract query plans. While database administrators and users may properly apply and understand the application of ASE optimization criteria, in some instances the application of optimization criteria may be incorrect. Additionally, the application of optimization criteria may be correct given the characteristics and volume of data within the database. This, however, can prove to be incorrect as data volume and characteristics change over time. To offer a strategy for the detection of misapplied query optimization criteria, an example is presented to demonstrate the detection of optimization criteria issues:

select e.eventID, el.eventTypeCode, e.actualEndTime
from Event e,
EventList el
where e.eventID = el.eventID

and e.eventID = 4
and el.eventTypeCode = 1
and e.actualEndTime = (select min(e2.actualEndTime)
from Event e2
where e.eventID = e2.eventID)
go


About Naresh Adurty
Naresh Adurty has been working with Sybase for 12 years, and is also a professional stand-up comedian.

About Steve Bradley
Steve Bradley is a Brainbench Certified Sybase DBA with over 25 years of experience in the IT industry. He has worked with Sybase products for more than 12 years and has also been a presenter at TechWave.

About Carrie King Taylor
Carrie King Taylor has worked with Sybase as a DBA for eight years and has been in the IT industry for more than 15 years.

About Brian Taylor
Brian Taylor is a Sybase Certified Professional DBA with over 11 years of experience in the IT industry. He has been a presenter at TechWave and contributed to Administrator's Guide to Sybase ASE 12.5.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Enterprise Open Source Magazine Latest Stories . . .
Apache Deltacloud, the Red Hat-contributed ReSTful API that abstracts differences between clouds so services on any cloud can be managed – provided of course there’s a driver – has graduated from the Apache Foundation’s incubator and is now a full-fledged Top-Level Project (TLP). The...
With Cloud Expo 2012 New York (10th Cloud Expo) just four months away, what better time to start introducing you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference... We have technical and st...
AMD said late Tuesday that its chief sales officer Emilio Ghilardi had left the company and that CEO and president Rory Read is going to do his job while a replacement is sought. AMD didn’t say why Ghilardi left but it’s assumed Read wants his own people. Read is relatively new to th...
During the lifespan of M3 (Monitis Monitor Manager) there has always been something lacking – timers. M3 execution procedure was outlined in this previous article. The execution mentioned in the latter was a one-time-execution, whereas server monitoring requires periodic invocati...
Red Hat is putting its bought-in Gluster scale-out NAS storage technology, acquired in October, on the Amazon cloud. It’s styled Red Hat Virtual Storage Appliance for Amazon Web Services and other clouds are supposed to follow in short order.
A new episode of the screencast series is now available at the OpenNebula YouTube Channel. This screencast demonstrates the new easily-customizable self-service portal for cloud consumers. Its aim is to offer a simplified access to shared infrastructure for non-IT end users. The scree...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE