Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Find Query Problems Proactively With Query Reviews

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
564 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 20, 2010

Sheeri K. Cabral (Pythian) presents at the 2010 O'Reilly MySQL Conference & Expo.

Slides: http://bit.ly/my10qreview

From the official conference description at http://en.oreilly.com/mysql2010/public/schedule/detail/13267



Wikipedia defines a code review as a systematic examination (often as peer review) of computer source code intended to find and fix mistakes overlooked in the initial development phase, improving both the overall quality of software and the developers skills.

Wouldnt it be great to do the same thing, but for the queries run against your databases? This presentation shows you how to do exactly that!

mk-query-digest is a Maatkit tool that can digest queries (similar to the output of mysqldumpslow) in a report. This can be a one-off report, or it can be stored in MySQL for a meta-database of queries. You can use this process to systematically go through every type of query that is sent by the code and set about approving or annotating each query type. For example, I have used this system to EXPLAIN each type of query, so that queries can be optimized before they show up in the slow query log.

This presentation will show how to review the queries in your system on a one-time or ongoing basis. Being able to review new queries before code is released allows you to catch problematic queries before it goes to production. By saving the results in MySQL, you can take the large project of make sure every query is optimized and break it into manageable chunks.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more