<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xaprb</title>
	<atom:link href="http://www.xaprb.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 02 Jul 2009 15:18:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wikipedia&#8217;s concensus: Linux is an operating system</title>
		<link>http://www.xaprb.com/blog/2009/07/01/wikipedias-concensus-linux-is-an-operating-system/</link>
		<comments>http://www.xaprb.com/blog/2009/07/01/wikipedias-concensus-linux-is-an-operating-system/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 20:06:03 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[Wikipedia]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1173</guid>
		<description><![CDATA[My brother sent me these thoughts, slightly edited:

Recently I looked at the [Wikipedia] Linux page. To my surprise it&#8217;s not about the kernel Linux, it&#8217;s about the &#8220;OS&#8221;. I looked at discussion and it appears that by general consensus the term Linux applies to the unix like operating system, and so it is correct for [...]


Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/06/21/recap-of-southeast-linux-fest-2009/' rel='bookmark' title='Permanent Link: Recap of Southeast Linux Fest 2009'>Recap of Southeast Linux Fest 2009</a> <small>Last weeke</small></li><li><a href='http://www.xaprb.com/blog/2009/05/05/why-mysql-might-not-benefit-from-having-a-mother-ship/' rel='bookmark' title='Permanent Link: Why MySQL might not benefit from having a mother ship'>Why MySQL might not benefit from having a mother ship</a> <small>As I was d</small></li><li><a href='http://www.xaprb.com/blog/2009/01/13/where-do-you-use-maatkit-in-real-life/' rel='bookmark' title='Permanent Link: Where do you use Maatkit in real life?'>Where do you use Maatkit in real life?</a> <small>I note tha</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>My brother sent me these thoughts, slightly edited:</p>

<blockquote>Recently I looked at the [Wikipedia] Linux page. To my surprise it&#8217;s not about the kernel Linux, it&#8217;s about the &#8220;OS&#8221;. I looked at discussion and it appears that by general consensus the term Linux applies to the unix like operating system, and so it is correct for Wikipedia to follow that consensus. So, instead of providing information, they are deliberately misleading folks&#8230; Often what the majority does is wrong because the majority of people are not the experts. By definition, the experts are a minority.</blockquote>

<p>You&#8217;d expect a higher standard from Wikipedia, wouldn&#8217;t you?  Wouldn&#8217;t you?  Aw, come on, surely you don&#8217;t mean to imply that Wikipedia is a place where things become true because most people say so, do you?</p>

<p>Consensus, when used in this way, is nothing other than mind-rot for the masses, group-think at its worst.  There is a valid use of the word when it applies to decision-making.  But this isn&#8217;t about decision-making, it&#8217;s about out-voting or out-discussing.</p>

<p>What&#8217;s interesting to me is that I heard a radio interview with Wikipedia&#8217;s founder Jimmy Wales, and he was extremely careful to say GNU/Linux when discussing the operating system that runs the website.</p>

<p>Saying that Linux is an operating system has not, does not, and never will make it true any more than saying that a steering wheel is a car makes it so.</p>

<p>Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/06/21/recap-of-southeast-linux-fest-2009/' rel='bookmark' title='Permanent Link: Recap of Southeast Linux Fest 2009'>Recap of Southeast Linux Fest 2009</a> <small>Last weeke</small></li><li><a href='http://www.xaprb.com/blog/2009/05/05/why-mysql-might-not-benefit-from-having-a-mother-ship/' rel='bookmark' title='Permanent Link: Why MySQL might not benefit from having a mother ship'>Why MySQL might not benefit from having a mother ship</a> <small>As I was d</small></li><li><a href='http://www.xaprb.com/blog/2009/01/13/where-do-you-use-maatkit-in-real-life/' rel='bookmark' title='Permanent Link: Where do you use Maatkit in real life?'>Where do you use Maatkit in real life?</a> <small>I note tha</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2009/07/01/wikipedias-concensus-linux-is-an-operating-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to add a wiki homepage, sidebar, and TOC in Google Code</title>
		<link>http://www.xaprb.com/blog/2009/07/01/how-to-add-a-wiki-homepage-sidebar-and-toc-in-google-code/</link>
		<comments>http://www.xaprb.com/blog/2009/07/01/how-to-add-a-wiki-homepage-sidebar-and-toc-in-google-code/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:29:02 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Maatkit]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[Google-Code]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1166</guid>
		<description><![CDATA[I just adore Google Code.  But the default wiki view (a list of pages, sorted by last-modified) is lacking something.  Fortunately, it&#8217;s fixable.  Here&#8217;s the before:



And here&#8217;s the after:



Here&#8217;s how:


Create a wiki page called TableOfContents, or something like that.  Using normal wiki syntax, enter links and text for your table of [...]


Related posts:<ol><li><a href='http://www.xaprb.com/blog/2008/11/23/google-code-rocks-my-world/' rel='bookmark' title='Permanent Link: Google Code rocks my world'>Google Code rocks my world</a> <small>Google Cod</small></li><li><a href='http://www.xaprb.com/blog/2008/10/04/javascript-formatting-and-parsing-functions-now-on-google-code/' rel='bookmark' title='Permanent Link: Javascript formatting and parsing functions now on Google Code'>Javascript formatting and parsing functions now on Google Code</a> <small>It&#8217;s</small></li><li><a href='http://www.xaprb.com/blog/2009/03/31/my-favorite-wiki-is-dokuwiki/' rel='bookmark' title='Permanent Link: My favorite wiki is Dokuwiki'>My favorite wiki is Dokuwiki</a> <small>I really l</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I just adore Google Code.  But the default wiki view (a list of pages, sorted by last-modified) is lacking something.  Fortunately, it&#8217;s fixable.  Here&#8217;s the before:</p>

<p><div id="attachment_1167" class="wp-caption alignnone" style="width: 642px"><img src="http://www.xaprb.com/blog/wp-content/uploads/2009/07/Screenshot-Wiki-Pages-maatkit-Google-Code-Mozilla-Firefox.png" alt="Default wiki list" title="Default wiki list" width="632" height="342" class="size-full wp-image-1167" /><p class="wp-caption-text">Default wiki list</p></div></p>

<p>And here&#8217;s the after:</p>

<p><div id="attachment_1168" class="wp-caption alignnone" style="width: 642px"><img src="http://www.xaprb.com/blog/wp-content/uploads/2009/07/Screenshot-Wiki-Pages-maatkit-Google-Code-Mozilla-Firefox1.png" alt="Wiki with sidebar and default page" title="Wiki with sidebar and default page" width="632" height="342" class="size-full wp-image-1168" /><p class="wp-caption-text">Wiki with sidebar and default page</p></div></p>

<p>Here&#8217;s how:</p>

<ol>
<li>Create a wiki page called TableOfContents, or something like that.  Using normal wiki syntax, enter links and text for your table of contents.  The best way to do this is to use bulleted lists to organize and outline the pages.  Keep in mind that we&#8217;ll use this same text for the sidebar, so keep it brief.</li>
<li>Go to Administer/Wiki and enter that wiki page&#8217;s name in the &#8220;Wiki Sidebar&#8221; box.  Save the changes.</li>
<li>Go to Administer/Tabs and enter the same page in the Wiki box.  Save the changes.</li>
</ol>

<p>Now both the wiki &#8220;homepage&#8221; and the sidebar will contain the page you created.  No more ugly list-of-pages.  And as you navigate through the wiki pages, the sidebar automatically expands and closes the outline to show where you are.</p>

<p>If you want, you can use a different homepage and sidebar, but I&#8217;ve found that it works well for me to use the same page for both.  It&#8217;s a preference, that&#8217;s all.</p>

<p>There&#8217;s one more trick I&#8217;d like to share: you can add the text <code>&lt;wiki:toc /&gt;</code> at the top of any page to create a small table of contents for that page.  There are ways to customize it &#8212; check the documentation for more options.</p>

<p>Related posts:<ol><li><a href='http://www.xaprb.com/blog/2008/11/23/google-code-rocks-my-world/' rel='bookmark' title='Permanent Link: Google Code rocks my world'>Google Code rocks my world</a> <small>Google Cod</small></li><li><a href='http://www.xaprb.com/blog/2008/10/04/javascript-formatting-and-parsing-functions-now-on-google-code/' rel='bookmark' title='Permanent Link: Javascript formatting and parsing functions now on Google Code'>Javascript formatting and parsing functions now on Google Code</a> <small>It&#8217;s</small></li><li><a href='http://www.xaprb.com/blog/2009/03/31/my-favorite-wiki-is-dokuwiki/' rel='bookmark' title='Permanent Link: My favorite wiki is Dokuwiki'>My favorite wiki is Dokuwiki</a> <small>I really l</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2009/07/01/how-to-add-a-wiki-homepage-sidebar-and-toc-in-google-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A review of MySQL Administrator&#8217;s Bible</title>
		<link>http://www.xaprb.com/blog/2009/06/30/a-review-of-mysql-administrators-bible/</link>
		<comments>http://www.xaprb.com/blog/2009/06/30/a-review-of-mysql-administrators-bible/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:43:19 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Keith-Murphy]]></category>
		<category><![CDATA[Sheeri-Kritzer-Cabral]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1144</guid>
		<description><![CDATA[

MySQL Administrator&#8217;s Bible by Sheeri K. Cabral and Keith Murphy, 2009. Page count: 800+ pages.  (Here&#8217;s a link to the publisher&#8217;s site.)

This book is a comprehensive reference guide to MySQL that&#8217;s accessible to beginning DBAs or DBAs familiar with another database.  It has enough detail to be a useful companion throughout a DBA&#8217;s [...]


Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/03/29/a-review-of-sql-and-relational-theory-by-c-j-date/' rel='bookmark' title='Permanent Link: A review of SQL and Relational Theory by C. J. Date'>A review of SQL and Relational Theory by C. J. Date</a> <small>

SQL an</small></li><li><a href='http://www.xaprb.com/blog/2009/02/21/review-of-scalable-internet-architectures-by-theo-schlossnagle/' rel='bookmark' title='Permanent Link: Review of Scalable Internet Architectures by Theo Schlossnagle'>Review of Scalable Internet Architectures by Theo Schlossnagle</a> <small></small></li><li><a href='http://www.xaprb.com/blog/2008/07/20/book-review-building-powerful-and-robust-websites-with-drupal-6/' rel='bookmark' title='Permanent Link: Book Review: Building powerful and robust websites with Drupal 6'>Book Review: Building powerful and robust websites with Drupal 6</a> <small>


I ju</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1145" class="wp-caption alignleft" style="width: 250px"><a href="http://www.amazon.com/MySQL-Administrators-Bible-Wiley/dp/0470416912?tag=xaprb-20"><img src="http://www.xaprb.com/blog/wp-content/uploads/2009/06/mysql-administrators-bible-240x300.jpg" alt="MySQL Administrator&#039;s Bible" title="MySQL Administrator&#039;s Bible" width="240" height="300" class="size-medium wp-image-1145" /></a><p class="wp-caption-text">MySQL Administrator's Bible</p></div></p>

<p><a href="http://www.amazon.com/MySQL-Administrators-Bible-Wiley/dp/0470416912?tag=xaprb-20">MySQL Administrator&#8217;s Bible</a> by Sheeri K. Cabral and Keith Murphy, 2009. Page count: 800+ pages.  (Here&#8217;s a <a href="http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470416912.html">link to the publisher&#8217;s site</a>.)</p>

<p>This book is a comprehensive reference guide to MySQL that&#8217;s accessible to beginning DBAs or DBAs familiar with another database.  It has enough detail to be a useful companion throughout a DBA&#8217;s career.  It also covers many related technologies, such as memcached, at a moderate-but-useful level of detail.  This isn&#8217;t exactly a how-to book, and it isn&#8217;t exactly a reference manual; it&#8217;s more of a blend of the two.</p>

<p>The audience will depend on personal preferences.  Some of the reference material is the type of thing I would look up with command-line <code>--help</code> options or the MySQL manual.  But there are times when the reference aspect of the book is uniquely valuable.  For example, the online documentation tends to list things alphabetically; the book might break them down into groups by function.  An example is the <code>sql_mode</code> parameters, which it groups into categories like &#8220;Getting rid of silent failures, silent conversions, and silently allowing invalid data.&#8221;</p>

<p>The non-reference aspect of the book has a lot of examples of how to do things, such as how to set up replication over SSL.  This is exactly what I&#8217;d look for in a book.  Otherwise, you&#8217;re reduced to reading documentation (inefficient, mind-numbing) or trusting the information you find online, which is generally not something I do.</p>

<p>Speaking of trusting information, I was happy to see very few typos or errors.  Occasionally I caught a minor slip.  For example, when discussing the limited memory a 32-bit mysqld can use because it runs in a single process, there&#8217;s a typo that mis-states this architectural feature as &#8220;mysqld is currently single-threaded,&#8221; which is not quite the same thing.  Overall, you can rely on the information you&#8217;ll read in this book.</p>

<p>The book is divided into four parts: first steps, developing with MySQL, core administration, and a set of chapters and appendixes grouped under extending your skills.  I think this organization works well.  You can read the full Table Of Contents at the publisher&#8217;s site linked above.</p>

<p>Coverage is for MySQL 5.1 and 6.0.  As we know, 5.1 was GA&#8217;ed and 6.0 has been killed and replaced by a new release policy.  This gives a slightly odd feeling to some passages, which speak about 5.1 in the past tense and 6.0 in the present tense!  As far as I know, however, this book contains the most complete coverage of MySQL 5.1 in print.  The only other similar book I&#8217;ve read that covers 5.1 is <em><a href="http://tinyurl.com/highperfmysql">High Performance MySQL 2nd Edition</a></em> &#8212; and that one is a bit light on details because there wasn&#8217;t a lot of production knowledge of 5.1 yet  (I&#8217;m the lead author of <em>HPM2e</em>, by the way).</p>

<p>Speaking of which, I think that <em>MySQL Administrator&#8217;s Bible</em> is a very good complement to <em>High Performance MySQL, 2nd Edition</em>. The former is useful to people who have varying levels of knowledge, while the latter assumes a lot of experience and doesn&#8217;t cover introductory material much.  And the books have different topics, of course.  So if you&#8217;re new to databases, or if you&#8217;re new to MySQL, you might do well to start with Sheeri&#8217;s book, then continue or supplement your education with ours.</p>

<p>All in all, this is a book that&#8217;s well worth buying if you&#8217;re going to administer a serious MySQL installation.  I tip my hat to Sheeri &#8212; I don&#8217;t know how she did it.  It&#8217;s a huge project and she pulled through the last (and by far most difficult) part of it by herself.</p>

<p><em>Disclosure: I tried to be a tech reviewer for this book, but I was over-committed and had to back out after a while.</em></p>

<p>Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/03/29/a-review-of-sql-and-relational-theory-by-c-j-date/' rel='bookmark' title='Permanent Link: A review of SQL and Relational Theory by C. J. Date'>A review of SQL and Relational Theory by C. J. Date</a> <small>

SQL an</small></li><li><a href='http://www.xaprb.com/blog/2009/02/21/review-of-scalable-internet-architectures-by-theo-schlossnagle/' rel='bookmark' title='Permanent Link: Review of Scalable Internet Architectures by Theo Schlossnagle'>Review of Scalable Internet Architectures by Theo Schlossnagle</a> <small></small></li><li><a href='http://www.xaprb.com/blog/2008/07/20/book-review-building-powerful-and-robust-websites-with-drupal-6/' rel='bookmark' title='Permanent Link: Book Review: Building powerful and robust websites with Drupal 6'>Book Review: Building powerful and robust websites with Drupal 6</a> <small>


I ju</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2009/06/30/a-review-of-mysql-administrators-bible/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Attending the IT Management Conference</title>
		<link>http://www.xaprb.com/blog/2009/06/29/attending-the-it-management-conference/</link>
		<comments>http://www.xaprb.com/blog/2009/06/29/attending-the-it-management-conference/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 14:11:23 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Leadership]]></category>
		<category><![CDATA[ManageIT09]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1153</guid>
		<description><![CDATA[I&#8217;ll be attending the IT Management Conference later this year in New York.  My proposals weren&#8217;t chosen so I won&#8217;t be speaking, but I wanted to attend whether I&#8217;m speaking or not.  It should be a very useful conference for those in or near management or leadership positions.  Email me if you [...]


Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/02/06/im-a-mysql-conference-and-expo-advocate-again/' rel='bookmark' title='Permanent Link: I&#8217;m a MySQL Conference and Expo advocate again'>I&#8217;m a MySQL Conference and Expo advocate again</a> <small>So far thi</small></li><li><a href='http://www.xaprb.com/blog/2009/02/06/towards-more-diversity-of-speakers-at-mysql-conference-and-expo/' rel='bookmark' title='Permanent Link: Towards more diversity of speakers at MySQL Conference and Expo'>Towards more diversity of speakers at MySQL Conference and Expo</a> <small>We (Percon</small></li><li><a href='http://www.xaprb.com/blog/2009/04/17/sessions-of-interest-at-the-percona-performance-conference/' rel='bookmark' title='Permanent Link: Sessions of interest at the Percona Performance Conference'>Sessions of interest at the Percona Performance Conference</a> <small>Having wri</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be attending the <a href="http://www.manageit.me/">IT Management Conference</a> later this year in New York.  My proposals weren&#8217;t chosen so I won&#8217;t be speaking, but I wanted to attend whether I&#8217;m speaking or not.  It should be a very useful conference for those in or near management or leadership positions.  Email me if you want a $50 discount off the registration, by the way.</p>

<p><em>PS: .me is a new top-level domain?  Ugh, when will it end.</em></p>

<p>Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/02/06/im-a-mysql-conference-and-expo-advocate-again/' rel='bookmark' title='Permanent Link: I&#8217;m a MySQL Conference and Expo advocate again'>I&#8217;m a MySQL Conference and Expo advocate again</a> <small>So far thi</small></li><li><a href='http://www.xaprb.com/blog/2009/02/06/towards-more-diversity-of-speakers-at-mysql-conference-and-expo/' rel='bookmark' title='Permanent Link: Towards more diversity of speakers at MySQL Conference and Expo'>Towards more diversity of speakers at MySQL Conference and Expo</a> <small>We (Percon</small></li><li><a href='http://www.xaprb.com/blog/2009/04/17/sessions-of-interest-at-the-percona-performance-conference/' rel='bookmark' title='Permanent Link: Sessions of interest at the Percona Performance Conference'>Sessions of interest at the Percona Performance Conference</a> <small>Having wri</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2009/06/29/attending-the-it-management-conference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Seeking input on a badness score for query execution</title>
		<link>http://www.xaprb.com/blog/2009/06/26/seeking-input-on-a-badness-score-for-query-execution/</link>
		<comments>http://www.xaprb.com/blog/2009/06/26/seeking-input-on-a-badness-score-for-query-execution/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 16:06:04 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Maatkit]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1140</guid>
		<description><![CDATA[Suppose that you&#8217;re writing a new Maatkit tool (just a random example, really) and its job is to measure the difference in execution of queries. The simplest metric is execution time.

Now suppose that you&#8217;re trying to figure out a metric of badness. The query executes in a second on machine 1 and 1000 seconds on [...]


Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/05/29/seeking-input-for-a-new-tool-to-verify-mysql-upgrades/' rel='bookmark' title='Permanent Link: Seeking input for a new tool to verify MySQL upgrades'>Seeking input for a new tool to verify MySQL upgrades</a> <small>I&#8217;ve</small></li><li><a href='http://www.xaprb.com/blog/2009/04/01/how-mysql-really-executes-a-query/' rel='bookmark' title='Permanent Link: How MySQL really executes a query'>How MySQL really executes a query</a> <small>WARNING: n</small></li><li><a href='http://www.xaprb.com/blog/2008/11/20/an-alternative-to-the-mysql-query-analyzer/' rel='bookmark' title='Permanent Link: An alternative to the MySQL Query Analyzer'>An alternative to the MySQL Query Analyzer</a> <small>MySQL just</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Suppose that you&#8217;re writing a new Maatkit tool (<a href="http://code.google.com/p/maatkit/wiki/mk_upgrade">just a random example, really</a>) and its job is to measure the difference in execution of queries. The simplest metric is execution time.</p>

<p>Now suppose that you&#8217;re trying to figure out a metric of badness. The query executes in a second on machine 1 and 1000 seconds on machine 2.  That&#8217;s a pretty bad change.  How do you quantify this?</p>

<p>Now you&#8217;ve got a query that executes in 1ms on machine 1, and 10ms on machine 2.  It&#8217;s a tenfold change.  Is it a bad change?  Maybe it&#8217;s just the difference in which files were cached in memory, or network latency because someone flooded the TCP pipe and the packets had to be backed off and retried, or something like that.  Is this significant?  How should it contribute to the badness score?</p>

<p>Let&#8217;s think of another example too.  Later in this mythical tool&#8217;s life, we&#8217;ll be examining EXPLAIN and looking at row estimates.  There are important differences between estimates of 1 row, 2 rows, 20 rows and 2000 rows.  But from 2 to 3 rows, or from 100 to 125 rows &#8212; is that a significant change? How should it contribute to the badness score?  What about this: a full table scan vs. an index scan, how should that contribute?</p>

<p>The general problem that I&#8217;m gesturing at here is a kind of generic badness score, which can be an accumulation of lots (dozens) of factors.  From my thinking on it so far, it&#8217;s a very complex problem, because you want to avoid false positives, you want to really capture a badness score in a way that&#8217;s quantifiable and sortable (this query is badder than that one, all things considered) and you don&#8217;t want to miss small things in the noise (these queries are the same in 23 of the 24 metrics, and that 24th metric is enough to trigger the alarm).</p>

<p>The other thing that&#8217;s worked its way into my small brain is this: it&#8217;s got to be a solved problem (unless it&#8217;s really intractable).  But I can&#8217;t think of the right combination of things to point me to the right Computer Science literature.</p>

<p>Help?</p>

<p>Related posts:<ol><li><a href='http://www.xaprb.com/blog/2009/05/29/seeking-input-for-a-new-tool-to-verify-mysql-upgrades/' rel='bookmark' title='Permanent Link: Seeking input for a new tool to verify MySQL upgrades'>Seeking input for a new tool to verify MySQL upgrades</a> <small>I&#8217;ve</small></li><li><a href='http://www.xaprb.com/blog/2009/04/01/how-mysql-really-executes-a-query/' rel='bookmark' title='Permanent Link: How MySQL really executes a query'>How MySQL really executes a query</a> <small>WARNING: n</small></li><li><a href='http://www.xaprb.com/blog/2008/11/20/an-alternative-to-the-mysql-query-analyzer/' rel='bookmark' title='Permanent Link: An alternative to the MySQL Query Analyzer'>An alternative to the MySQL Query Analyzer</a> <small>MySQL just</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2009/06/26/seeking-input-on-a-badness-score-for-query-execution/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
