<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The MySQL Guy Podcast</title>
	<atom:link href="http://themysqlguy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://themysqlguy.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Fri, 04 Feb 2011 22:46:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='themysqlguy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The MySQL Guy Podcast</title>
		<link>http://themysqlguy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://themysqlguy.wordpress.com/osd.xml" title="The MySQL Guy Podcast" />
	<atom:link rel='hub' href='http://themysqlguy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>I am Presenting at MySQL Camp 2009</title>
		<link>http://themysqlguy.wordpress.com/2009/04/21/i-am-presenting-at-mysql-camp-2009/</link>
		<comments>http://themysqlguy.wordpress.com/2009/04/21/i-am-presenting-at-mysql-camp-2009/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 16:42:41 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[From me to you]]></category>
		<category><![CDATA[mysqlconf]]></category>
		<category><![CDATA[presentation]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=42</guid>
		<description><![CDATA[Come join me at MySQL Camp 2009. I will be presenting how to run multiple instances of MySQL, on one installation. The Hyatt Regency Santa Clara 5101 Great America Parkway Santa Clara, CA 95054 USA April 22, 2009 11:55 am &#8230; <a href="http://themysqlguy.wordpress.com/2009/04/21/i-am-presenting-at-mysql-camp-2009/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=42&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Come join me at MySQL Camp 2009.  I will be presenting how to run multiple instances of MySQL, on one installation.</p>
<p>The Hyatt Regency Santa Clara<br />
5101 Great America Parkway<br />
Santa Clara, CA 95054<br />
USA</p>
<p>April 22, 2009 11:55 am &#8211; 12:35 pm<br />
<a href="http://forge.mysql.com/wiki/MySQL_Camp_2009_Sessions#Wednesday_11:55_am_-_12:35_pm" target="_blank">Presentation Schedule<br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=42&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2009/04/21/i-am-presenting-at-mysql-camp-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>
	</item>
		<item>
		<title>Master-Master Replication. A Cluster, it is not!</title>
		<link>http://themysqlguy.wordpress.com/2009/01/09/master-master-replication-a-cluster-it-is-not/</link>
		<comments>http://themysqlguy.wordpress.com/2009/01/09/master-master-replication-a-cluster-it-is-not/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 23:45:50 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[MySQL misc. Posts]]></category>
		<category><![CDATA[master]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=27</guid>
		<description><![CDATA[I am continuously asked by wide-eyed green web 2.0 developers about Master-Master Replication (M-M).  Development Managers and CTOs/CIOs aren&#8217;t immune to this either.  They read a couple of posts about it, on the web, and seem to think that you &#8230; <a href="http://themysqlguy.wordpress.com/2009/01/09/master-master-replication-a-cluster-it-is-not/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=27&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am continuously asked by wide-eyed green web 2.0 developers about Master-Master Replication (M-M).  Development Managers and CTOs/CIOs aren&#8217;t immune to this either.  They read a couple of posts about it, on the web, and seem to think that you can put together a couple of commodity servers, through in a Load Balancer and voila! Instant cluster, without the high price tag of Oracle&#8217;s RAC.</p>
<p>Unfortunately, its not that simple.  MySQL actually has a cluster product which it acquired from Ericsson.  It has some limitations. V5.0 needs to be able to have both data and index completely in memory. V5.1 needs to be able to have all index in memory.  Either later choices performs a 2 phase commit, so at anytime, querying any node with the same query, will return the same result.  In a M-M environment, depending on the load on either node, replication can be lagging, thus returning different results for the same query from each node.</p>
<p>If such a case is not handled by the application, at best, you will have inconsistent results, at worse dire results.</p>
<p>Some applications will simply not be able to use it at all.  Here is an example.  Say your DB Schema has a column that needs to be unique, however, not part of the Primary Key.  If you insert a record on one node, then insert an identical record on the second node, you will end up with two legal records on their respective nodes.  When it gets time to replicate that record in both directions, the unique constraint will make replication fail on both servers.</p>
<h2>But doesn&#8217;t it offer High-Availability?</h2>
<p>It does, if you are willing to live with a potentially inconsistent dataset after a node failure.  Remember we specified earlier that replication can lag between nodes.  If disaster strikes on one of your nodes, you have lost every transaction for the period that the other node was lagging behind the lost one.</p>
<p>The reuslt?  Your website or app is still running, however data that was previously on one server will no longer be available.  depending on your app, that could have huge consequences.</p>
<h2>So Why use it?</h2>
<p>If you could mitigate the above mentioned risks, and design your app properly, you could take advantage of M-M.  Reads would be shared between both nodes, theoretically allowing you to handle more load.  You could also pull out one node at a time, deploy possible long schema changes, rebuild indexes, etc. while the other handles the whole load, then do the same to the other.</p>
<p>I tend to stay away from M-M.  It adds an extra, often unnecessary, layer of complexity to your environment.  It does have its place, and should be part of your little bag of tricks, but only pull it out when you need to, and when it absolutely fits.  Don&#8217;t let that green PHP developper tell you he built it at home and it works, then you get stuck supporting a nightmare.  His pager isn&#8217;t going to go off at 3am&#8230;yours is!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=27&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2009/01/09/master-master-replication-a-cluster-it-is-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>
	</item>
		<item>
		<title>Site Relaunch!</title>
		<link>http://themysqlguy.wordpress.com/2008/12/15/site-relaunch/</link>
		<comments>http://themysqlguy.wordpress.com/2008/12/15/site-relaunch/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 17:34:31 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[relaunch]]></category>
		<category><![CDATA[themysqlguy.com]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=24</guid>
		<description><![CDATA[Hello Everyone! I have finished my move to the Bay Area (Silicon Valley) and now have more time to return to the blog.  I have learned a few new tricks as well I want to share. So&#8230;.. I am relaunching &#8230; <a href="http://themysqlguy.wordpress.com/2008/12/15/site-relaunch/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=24&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello Everyone!</p>
<p>I have finished my move to the Bay Area (Silicon Valley) and now have more time to return to the blog.  I have learned a few new tricks as well I want to share.</p>
<p>So&#8230;..</p>
<p>I am relaunching the site.  There will be a new format too.  The podcast episodes will still be published for more high level discussions, then supported by a series of blog posts.</p>
<p>I think this will be a more productive format, since most users want to hear the high level discussion and then go to the site and refer to the material.</p>
<p>Thanks for all the fish!</p>
<p>Christos</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=24&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2008/12/15/site-relaunch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>
	</item>
		<item>
		<title>MONyog</title>
		<link>http://themysqlguy.wordpress.com/2008/09/16/monyog/</link>
		<comments>http://themysqlguy.wordpress.com/2008/09/16/monyog/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 06:03:25 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[From me to you]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[monyog]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=19</guid>
		<description><![CDATA[I just started using MONyog a month ago, and purchased it today.  I have used MySQL Enterprise Monitor for a year and a half, and although some believe its a superior product, its 5K per server per year for the &#8230; <a href="http://themysqlguy.wordpress.com/2008/09/16/monyog/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=19&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just started using MONyog a month ago, and purchased it today.  I have used MySQL Enterprise Monitor for a year and a half, and although some believe its a superior product, its 5K per server per year for the Enterprise version.</p>
<p>I bought the Unlimited Pack for $999 and that is a perpetual license for an unlimited amount of servers.  It gives me all the monitoring I need and without an agent installed on the MySQL server.  That makes the sys-admins I work with very happy.</p>
<p>My prefered feature is the log analyzer.  It makes analysing the slow-query-log and the general-log really easy and efficient.</p>
<p>Cool product, check it out if you can.</p>
<p>http://www.webyog.com/en/</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=19&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2008/09/16/monyog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>
	</item>
		<item>
		<title>IBM buys database software firm Solid Information</title>
		<link>http://themysqlguy.wordpress.com/2007/12/21/ibm-buys-database-software-firm-solid-information/</link>
		<comments>http://themysqlguy.wordpress.com/2007/12/21/ibm-buys-database-software-firm-solid-information/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 01:19:34 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=17</guid>
		<description><![CDATA[International Business Machines said on Friday it has agreed to buy in-memory database software provider Solid Information Technology from private owners for an undisclosed sum. Solid&#8217;s largest owners were private equity firms Apax Partners and CapMan. Solid is expected to &#8230; <a href="http://themysqlguy.wordpress.com/2007/12/21/ibm-buys-database-software-firm-solid-information/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=17&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>International Business Machines said on Friday it has agreed to buy in-memory database software provider <a href="http://www.solidtech.com" target="_blank">Solid Information Technology</a> from private owners for an undisclosed sum. Solid&#8217;s largest owners were private equity firms Apax Partners and CapMan.</p>
<p>Solid is expected to have 2007 sales of around $14.4 million, Vesa Wallden, a member of Solid&#8217;s board told Reuters. IBM said the acquisition is expected to close in the first quarter of 2008. &#8220;IBM&#8217;s acquisition of Solid Information Technology supports the company&#8217;s growth strategy and capital allocation model, and it is expected to contribute to the achievement of the company&#8217;s objective for earnings-per-share growth through 2010,&#8221; IBM said in a statement.</p>
<p><em>Story Copyright © 2007 Reuters Limited. All rights reserved. </em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=17&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2007/12/21/ibm-buys-database-software-firm-solid-information/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>
	</item>
		<item>
		<title>Episode 6 &#8211; SolidDB Storage Engine</title>
		<link>http://themysqlguy.wordpress.com/2007/11/14/soliddb-storage-engine/</link>
		<comments>http://themysqlguy.wordpress.com/2007/11/14/soliddb-storage-engine/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 01:56:27 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[soliddb]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=15</guid>
		<description><![CDATA[Recently we ran into a wall in one of my customers&#8217; sites. They built an application that processed EDI documents. Each document, contained a list of transactions. Their application would launch a thread for each transaction in the document. On &#8230; <a href="http://themysqlguy.wordpress.com/2007/11/14/soliddb-storage-engine/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=15&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style='text-align:left;display:block;'><p><object type='application/x-shockwave-flash' data='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' width='290' height='24' id='audioplayer1'><param name='movie' value='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' /><param name='FlashVars' value='&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;track=0xFFFFFF&amp;border=0x666666&amp;loader=0x9FFFB8&amp;soundFile=http%3A%2F%2Fwww.archive.org%2Fdownload%2FSoliddbStorageEngine%2Fepisode_06.mp3' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='bgcolor' value='#FFFFFF' /><param name='wmode' value='opaque' /></object></p></span><br />
Recently we ran into a wall in one of my customers&#8217; sites. They built an application that processed EDI documents. Each document, contained a list of transactions. Their application would launch a thread for each transaction in the document. On the surface this sounds good and the multi-threaded approach would speed up processing of a document.</p>
<p>InnoDB is the only built-in transactional storage engine and unfortunately has some limitations.</p>
<pre>TX1 SET TRANSACTION ISOLATION LEVEL READ COMMITTED
TX2 SET TRANSACTION ISOLATION LEVEL READ COMMITTED
TX1 START TRANSACTION
TX2 START TRANSACTION
TX1 INSERT INTO child
TX2 INSERT INTO child (with same parent)
TX1 UPDATE parent
TX2 UPDATE parent (same parent row)
ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction</pre>
<p>We solved this issue using a third party storage engine; <a title="solidDB" href="http://www.solidtech.com" target="_blank">solidDB</a>.</p>
<p><a href="http://solutions.mysql.com/solutions/?type=29" target="_blank">Other storage engines available with MySQL</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=15&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2007/11/14/soliddb-storage-engine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.archive.org/download/SoliddbStorageEngine/episode_06.mp3" length="4220299" type="audio/mpeg" />
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>

		<media:content url="http://www.archive.org/download/SoliddbStorageEngine/episode_06.mp3" medium="audio">
			<media:player url="http://themysqlguy.wordpress.com/wp-content/plugins/audio-player/player.swf?soundFile=http://www.archive.org/download/SoliddbStorageEngine/episode_06.mp3" />
		</media:content>
	</item>
		<item>
		<title>Episode 5 &#8211; Federated Storage Engine</title>
		<link>http://themysqlguy.wordpress.com/2007/06/19/episode-5-federated-storage-engine/</link>
		<comments>http://themysqlguy.wordpress.com/2007/06/19/episode-5-federated-storage-engine/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 21:48:06 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[Episodes]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=14</guid>
		<description><![CDATA[&#160; Federated Storage Engine (FSE) allows you to connect to a remote server and &#8220;mount&#8221; a table on your local server, which links to the data on the remote server, for read-only access. $ mysql -u root -ppassword -h remote &#8230; <a href="http://themysqlguy.wordpress.com/2007/06/19/episode-5-federated-storage-engine/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=14&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style='text-align:left;display:block;'><p><object type='application/x-shockwave-flash' data='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' width='290' height='24' id='audioplayer1'><param name='movie' value='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' /><param name='FlashVars' value='&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;track=0xFFFFFF&amp;border=0x666666&amp;loader=0x9FFFB8&amp;soundFile=http%3A%2F%2Fwww.archive.org%2Fdownload%2FFederatedStorageEngine%2Fepisode_05.mp3' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='bgcolor' value='#FFFFFF' /><param name='wmode' value='opaque' /></object></p></span>
<p style="text-align:center;"><a href="http://themysqlguy.files.wordpress.com/2007/06/federated1.jpg"><img class="size-full wp-image-88 aligncenter" title="federated" src="http://themysqlguy.files.wordpress.com/2007/06/federated1.jpg?w=336&#038;h=300" alt="" width="336" height="300" /></a></p>
<p>&nbsp;</p>
<p class="paragraph_style" style="padding-top:0;">Federated Storage Engine (FSE) allows you to connect to a remote server and &#8220;mount&#8221; a table on your local server, which links to the data on the remote server, for read-only access.</p>
<pre>$ mysql -u root -ppassword -h remote

mysql&gt; CREATE DATABASE test;
mysql&gt; use test;
mysql&gt; CREATE TABLE drivers (id INT,name VARCHAR(100));
mysql&gt; INSERT INTO drivers (id, name) VALUES (1, ‘Chris’);
mysql&gt; INSERT INTO drivers (id, name) VALUES (2, ‘Sheeri’);
mysql&gt; INSERT INTO drivers (id, name) VALUES (3, ‘Elie’);
mysql&gt; select * from drivers;
+------+--------+
| id   | name   |
+------+--------+
|    1 | Chris  |
|    2 | Sheeri |
|    3 | Elie   |
+------+--------+
3 rows in set (0.08 sec)

mysql&gt; exit;

$ mysql -u root -ppassword -h local
mysql&gt; CREATE DATABASE test;
mysql&gt; use test;
mysql&gt; CREATE TABLE drivers (id INT,name VARCHAR(100)) ENGINE=FEDERATED
CONNECTION=’mysql://root:password@remote:3306/test/drivers’;
mysql&gt; select * from drivers;
+------+--------+
| id   | name   |
+------+--------+
|    1 | Chris  |
|    2 | Sheeri |
|    3 | Elie   |
+------+--------+
3 rows in set (0.14 sec)

mysql&gt; exit;</pre>
<p class="paragraph_style">Enjoy FSE tables!</p>
<p class="paragraph_style">Bye! Thanks for all the fish!</p>
<p class="paragraph_style_2" style="padding-bottom:0;"><a title="mailto:christos@themysqlguy.com" href="mailto:christos@themysqlguy.com">christos@themysqlguy.com</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=14&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2007/06/19/episode-5-federated-storage-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.archive.org/download/FederatedStorageEngine/episode_05.mp3" length="4691114" type="audio/mpeg" />
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>

		<media:content url="http://themysqlguy.files.wordpress.com/2007/06/federated1.jpg" medium="image">
			<media:title type="html">federated</media:title>
		</media:content>

		<media:content url="http://www.archive.org/download/FederatedStorageEngine/episode_05.mp3" medium="audio">
			<media:player url="http://themysqlguy.wordpress.com/wp-content/plugins/audio-player/player.swf?soundFile=http://www.archive.org/download/FederatedStorageEngine/episode_05.mp3" />
		</media:content>
	</item>
		<item>
		<title>The &quot;She-BA&quot; and OurSQL Podcast</title>
		<link>http://themysqlguy.wordpress.com/2007/06/08/the-she-ba-and-oursql-podcast/</link>
		<comments>http://themysqlguy.wordpress.com/2007/06/08/the-she-ba-and-oursql-podcast/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 21:36:30 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[From me to you]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=12</guid>
		<description><![CDATA[&#160; I wanted to let you know all about a blog and podcast I have been reading/listening to lately. Its called OurSQL and the author is Sheeri Kritzer.I have been in email contact with Sheeri and she seems like a &#8230; <a href="http://themysqlguy.wordpress.com/2007/06/08/the-she-ba-and-oursql-podcast/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=12&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="paragraph_style" style="padding-top:0;">&nbsp;</p>
<p class="paragraph_style" style="padding-top:0;"><a href="http://themysqlguy.files.wordpress.com/2007/06/she-ba.jpg"><img class="aligncenter size-full wp-image-90" title="she-ba" src="http://themysqlguy.files.wordpress.com/2007/06/she-ba.jpg?w=248&#038;h=207" alt="" width="248" height="207" /></a></p>
<p class="paragraph_style" style="padding-top:0;">I wanted to let you know all about a blog and podcast I have been reading/listening to lately.  Its called OurSQL and the author is Sheeri Kritzer.I have been in email contact with Sheeri and she seems like a really great person.  Why wouldn’t she be?  She’s a MySQL DBA after all!  The self proclaimed “She-BA”.</p>
<p class="paragraph_style">&nbsp;</p>
<p>Check out her blog at sheeri.net and her Podcast OurSQL on iTunes.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=12&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2007/06/08/the-she-ba-and-oursql-podcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>

		<media:content url="http://themysqlguy.files.wordpress.com/2007/06/she-ba.jpg" medium="image">
			<media:title type="html">she-ba</media:title>
		</media:content>
	</item>
		<item>
		<title>Episode 4 &#8211; Some Questions, my Answers 1</title>
		<link>http://themysqlguy.wordpress.com/2007/05/27/episode-4-some-questions-my-answers-1/</link>
		<comments>http://themysqlguy.wordpress.com/2007/05/27/episode-4-some-questions-my-answers-1/#comments</comments>
		<pubDate>Sun, 27 May 2007 21:45:07 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[questions]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=13</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=13&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style='text-align:left;display:block;'><p><object type='application/x-shockwave-flash' data='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' width='290' height='24' id='audioplayer1'><param name='movie' value='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' /><param name='FlashVars' value='&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;track=0xFFFFFF&amp;border=0x666666&amp;loader=0x9FFFB8&amp;soundFile=http%3A%2F%2Fwww.archive.org%2Fdownload%2FSomeQuestionsMyAnswers1%2Fepisode_04.mp3' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='bgcolor' value='#FFFFFF' /><param name='wmode' value='opaque' /></object></p></span>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=13&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2007/05/27/episode-4-some-questions-my-answers-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.archive.org/download/SomeQuestionsMyAnswers1/episode_04.mp3" length="2578092" type="audio/mpeg" />
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>

		<media:content url="http://www.archive.org/download/SomeQuestionsMyAnswers1/episode_04.mp3" medium="audio">
			<media:player url="http://themysqlguy.wordpress.com/wp-content/plugins/audio-player/player.swf?soundFile=http://www.archive.org/download/SomeQuestionsMyAnswers1/episode_04.mp3" />
		</media:content>
	</item>
		<item>
		<title>Episode 3 &#8211; Slow Query Log</title>
		<link>http://themysqlguy.wordpress.com/2007/04/06/episode-3-slow-query-log/</link>
		<comments>http://themysqlguy.wordpress.com/2007/04/06/episode-3-slow-query-log/#comments</comments>
		<pubDate>Fri, 06 Apr 2007 21:25:56 +0000</pubDate>
		<dc:creator>Christos Kalantzis</dc:creator>
				<category><![CDATA[Episodes]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.themysqlguy.com/?p=11</guid>
		<description><![CDATA[One of the best features of MySQL is the fact that you can have a log of all queries that take longer than n seconds. Activating the Log To activate this log start MySQL with the &#8211;log-slow-queries[=file_name] option, or add &#8230; <a href="http://themysqlguy.wordpress.com/2007/04/06/episode-3-slow-query-log/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=11&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style='text-align:left;display:block;'><p><object type='application/x-shockwave-flash' data='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' width='290' height='24' id='audioplayer1'><param name='movie' value='http://s2.wp.com/wp-content/plugins/audio-player/player.swf' /><param name='FlashVars' value='&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;track=0xFFFFFF&amp;border=0x666666&amp;loader=0x9FFFB8&amp;soundFile=http%3A%2F%2Fwww.archive.org%2Fdownload%2FSlowQueryLog%2Fepisode_03.mp3' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='bgcolor' value='#FFFFFF' /><param name='wmode' value='opaque' /></object></p></span>
<p style="text-align:left;"><span style="color:#444444;line-height:24px;font-size:16px;">One of the best features of MySQL is the fact that you can </span><span style="color:#444444;line-height:24px;font-size:16px;">have a log of all queries that take longer than <span class="style_1">n</span> seconds.</span></p>
<h2><span class="style_2" style="line-height:23px;">Activating the Log</span></h2>
<p class="paragraph_style">To activate this log start MySQL with the <span class="style_1">&#8211;log-slow-queries[=file_name]</span> option, or add the previous option to your my.cnf or my.ini and restart the server:</p>
<pre><span class="style_3" style="line-height:15px;">[mysqld]
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">...
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">log-slow-queries[=file_name]</span></pre>
<p class="paragraph_style">You can specify a file name for the slow-query-log or it will be called <span class="style_1">host_name-slow.log</span>. By default the log is in the data directory, unless you specify an absolute path with the file name.</p>
<p class="paragraph_style">By default a slow query is one that takes 10 seconds. You can change that by specifying <span class="style_1">long_query_time</span> in either during startup or in the my.cnf or my.ini file.</p>
<pre><span class="style_3" style="line-height:15px;">[mysqld]
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">...
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">log-slow-queries
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">long_query_time=8</span></pre>
<p class="paragraph_style_1"><span style="font-size:23px;line-height:23px;">Viewing the Log</span></p>
<p class="paragraph_style">The log is in text format and can easily be viewed by any text editor and looks like this:</p>
<pre><span class="style_5" style="line-height:15px;"># Time: 070116  5:16:35
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;"># User@Host: nvusr[nvusr] @ app01 [10.30.5.226]
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;"># Query_time: 21  Lock_time: 0  Rows_sent: 20  Rows_examined: 4078677
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">SELECT ectransactions.*, interchanges.interchange_datetime as transaction_datetime, interchanges.partner_name, interchanges.direction, functional_groups.functional_group_control_numb, fo_name, functional_organization_qualid, partner_name, partner_qualid, interchanges.interchange_control_number, operators.name as operator_name, trading_participants.name as client_name FROM ectransactions  left join functional_groups ON ectransactions.functional_group_id=functional_groups.id left join interchanges ON ectransactions.interchange_id=interchanges.id left join trading_participants ON ectransactions.trading_participant_id=trading_participants.id left join operators ON ectransactions.operator_id=operators.id  ORDER BY client_name asc, transaction_datetime desc  LIMIT 0, 20;</span></pre>
<p class="paragraph_style">However, its a lot more readable with the <span class="style_6">mysqldumpslow</span> command, whose output looks like this:</p>
<pre><span class="style_5" style="line-height:15px;">Count: 1  Time=24.00s (24s)  Lock=0.00s (0s)  Rows=20.0 (20), nvusr[nvusr]@tqapp02
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">SELECT ectransactions.*, interchanges.interchange_datetime as transaction_datetime, interchanges.partner_name, interchanges.direction, functional_groups.functional_group_control_numb, fo_name, functional_organization_qualid, partner_name, partner_qualid, interchanges.interchange_control_number, operators.name as operator_name, trading_participants.name as client_name FROM ectransactions  left join functional_groups ON ectransactions.functional_group_id=functional_groups.id left join interchanges ON ectransactions.interchange_id=interchanges.id left join trading_participants ON ectransactions.trading_participant_id=trading_participants.id left join operators ON ectransactions.operator_id=operators.id  ORDER BY transaction_datetime asc, description desc  LIMIT N, N
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">Count: 2  Time=22.00s (44s)  Lock=0.00s (0s)  Rows=20.0 (40), nvusr[nvusr]@2hosts
</span><span style="color:#444444;font-family:Georgia, 'Bitstream Charter', serif;line-height:15px;">SELECT ectransactions.*, interchanges.interchange_datetime as transaction_datetime, interchanges.partner_name, interchanges.direction, functional_groups.functional_group_control_numb, fo_name, functional_organization_qualid, partner_name, partner_qualid, interchanges.interchange_control_number, operators.name as operator_name, trading_participants.name as client_name FROM ectransactions  left join functional_groups ON ectransactions.functional_group_id=functional_groups.id left join interchanges ON ectransactions.interchange_id=interchanges.id left join trading_participants ON ectransactions.trading_participant_id=trading_participants.id left join operators ON ectransactions.operator_id=operators.id  ORDER BY client_name asc, transaction_datetime desc  LIMIT N, N</span></pre>
<p class="paragraph_style"><span style="font-size:23px;color:#000000;line-height:35px;">I Want More!</span></p>
<p class="paragraph_style">You can also have MySQL add all queries that don’t use indexes into the slow-query-log. Add <strong><span class="style_1">&#8211;log-queries-not-using-indexes</span></strong> during startup or in the <em>my.cnf</em> or <em>my.ini</em> file.</p>
<p class="paragraph_style">Bye! Thanks for all the fish!</p>
<p class="paragraph_style_3" style="padding-bottom:0;"><a title="mailto:christos@themysqlguy.com" href="mailto:christos@themysqlguy.com">christos@themysqlguy.com</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/themysqlguy.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/themysqlguy.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/themysqlguy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/themysqlguy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/themysqlguy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/themysqlguy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/themysqlguy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/themysqlguy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/themysqlguy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/themysqlguy.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=themysqlguy.wordpress.com&amp;blog=18623008&amp;post=11&amp;subd=themysqlguy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://themysqlguy.wordpress.com/2007/04/06/episode-3-slow-query-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.archive.org/download/SlowQueryLog/episode_03.mp3" length="3404966" type="audio/mpeg" />
	
		<media:content url="http://1.gravatar.com/avatar/7958049abb2006c51b6bcf9e8f9c0335?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ckalantzis</media:title>
		</media:content>

		<media:content url="http://www.archive.org/download/SlowQueryLog/episode_03.mp3" medium="audio">
			<media:player url="http://themysqlguy.wordpress.com/wp-content/plugins/audio-player/player.swf?soundFile=http://www.archive.org/download/SlowQueryLog/episode_03.mp3" />
		</media:content>
	</item>
	</channel>
</rss>
