Martin Heller
Contributing Writer

Taking the black art out of SQL tuning

analysis
Nov 9, 20092 mins

Embarcadero DB Optimizer 2 takes a methodical approach to SQL query analysis and optimization

As any database admin knows, mastering the subtler nuances of SQL can be likened to the black arts. For me, tuning the efficiency of SQL queries on large, heavily used databases is a perfect example.

Sure, I know how to use the query analysis tools built into SQL Server and Oracle — but even with them, optimizing SQL still requires me to monitor queries during heavy load to find out whether I’ve truly fixed the code, without introducing new problems in the process.

[ Keep up with app dev issues and trends with InfoWorld’s Fatal Exception and Strategic Developer ]

Last week Kyle Hailey of Embarcadero gave me a live demo of DB Optimizer 2 and made it very clear how I or any database programmer could use the DB Optimizer to methodically analyze, improve, and load test SQL queries. Two of the tools introduced in this package are Visual SQL Tuning Diagrams and Index Analysis. The package also includes sophisticated profiling and parallel load stress testing. The figure below shows profiling (click on it to see a full-size screen):

db opt 2 profiling sm.png

The next figure shows Visual SQL Tuning index analysis:

db opt 2 tuner_vst_index_analysis sm.png

The query optimization that Kyle used as a demonstration was from a major package that shall remain nameless to protect the guilty.

I have to say, I was very impressed. I’m not sure exactly how big a shop you have to be to rationalize a $1,500 tool like this, but the ROI for optimizing a query versus throwing bigger hardware at it is usually easy to justify.

Interested admins can view a video demonstration of DB Optimizer 2 on Embarcadero’s Web site.

This story, “Taking the black art out of SQL tuning,” was originally published at InfoWorld.com. Follow the latest developments in application development at InfoWorld.com.

Martin Heller

Martin Heller is a contributing writer at InfoWorld. Formerly a web and Windows programming consultant, he developed databases, software, and websites from his office in Andover, Massachusetts, from 1986 to 2010. From 2010 to August of 2012, Martin was vice president of technology and education at Alpha Software. From March 2013 to January 2014, he was chairman of Tubifi, maker of a cloud-based video editor, having previously served as CEO.

Martin is the author or co-author of nearly a dozen PC software packages and half a dozen Web applications. He is also the author of several books on Windows programming. As a consultant, Martin has worked with companies of all sizes to design, develop, improve, and/or debug Windows, web, and database applications, and has performed strategic business consulting for high-tech corporations ranging from tiny to Fortune 100 and from local to multinational.

Martin’s specialties include programming languages C++, Python, C#, JavaScript, and SQL, and databases PostgreSQL, MySQL, Microsoft SQL Server, Oracle Database, Google Cloud Spanner, CockroachDB, MongoDB, Cassandra, and Couchbase. He writes about software development, data management, analytics, AI, and machine learning, contributing technology analyses, explainers, how-to articles, and hands-on reviews of software development tools, data platforms, AI models, machine learning libraries, and much more.

More from this author