<?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>PlanetMysql.ru - информация о СУБД MySQL &#187; MariaDB</title>
	<atom:link href="http://planetmysql.ru/category/mariadb/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetmysql.ru</link>
	<description>Блог о самой популярной СУБД MySQL</description>
	<lastBuildDate>Fri, 10 Feb 2012 22:53:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Drizzle Day and MariaDB day to end your MySQL user conference</title>
		<link>http://openlife.cc/blogs/2012/february/drizzle-day-and-mariadb-day-end-your-mysql-user-conference?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=drizzle-day-and-mariadb-day-to-end-your-mysql-user-conference</link>
		<comments>http://openlife.cc/blogs/2012/february/drizzle-day-and-mariadb-day-end-your-mysql-user-conference#comments</comments>
		<pubDate>Wed, 08 Feb 2012 23:16:54 +0000</pubDate>
		<dc:creator>Henrik Ingo</dc:creator>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SkySQL]]></category>

		<guid isPermaLink="false">http://planetmysql.ru/?guid=767fe3ed93bbf2e5a2c54399462928a4</guid>
		<description><![CDATA[Good news to all of you who are going or were thinking of going to the Percona Live MySQL Conference and Expo. Yesterday two great addon events were announced, both happening on Friday April 13th, right after the main conference:
Drizzle Day 2012
read more]]></description>
			<content:encoded><![CDATA[<p>Good news to all of you who are going or were thinking of going to the <a href="http://www.percona.com/live/mysql-conference-2012/">Percona Live MySQL Conference and Expo</a>. Yesterday two great addon events were announced, both happening on Friday April 13th, right after the main conference:</p>
<p><a href="http://www.drizzle.org/content/drizzle-day-fri-13-apr-2012-santa-clara">Drizzle Day 2012</a></p>
<p><a href="http://openlife.cc/blogs/2012/february/drizzle-day-and-mariadb-day-end-your-mysql-user-conference" >read more</a></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31953&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31953&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/09/drizzle-day-and-mariadb-day-to-end-your-mysql-user-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing the SkySQL &amp; MariaDB Solutions Day for the MySQL® Database:  Free Training for Developers, DBAs, &amp; IT Architects</title>
		<link>http://www.skysql.com/blogs/kathoneil27/announcing-skysql-mariadb-solutions-day-mysql-database-free-training-developers-db?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=announcing-the-skysql-mariadb-solutions-day-for-the-mysql-database-free-training-for-developers-dbas-it-architects</link>
		<comments>http://www.skysql.com/blogs/kathoneil27/announcing-skysql-mariadb-solutions-day-mysql-database-free-training-developers-db#comments</comments>
		<pubDate>Tue, 07 Feb 2012 13:00:00 +0000</pubDate>
		<dc:creator>SkySQL</dc:creator>
				<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SkySQL]]></category>

		<guid isPermaLink="false">http://planetmysql.ru/?guid=c709458d15911e1bb2b1e16ddfc330bd</guid>
		<description><![CDATA[SkySQL and MariaDB are delighted to announce that we&#8217;ll be co-hosting our first Solutions Day for the MySQL&#174; Database on 13 April, 2012, at the Hyatt Regency Santa Clara.

	During this one day event, attendees will receive free, hands-on training on MySQL database solutions from the experts at SkySQL, MariaDB, Continuent, ScaleDB, Severalnines, Sphinx, and Webyog, among others.
	As well, SkySQL and MariaDB will bring together industry visionaries, including Michael (Monty) Widenius and David Axmark, the original authors of the MySQL database, to share their insights on current and future trends pertaining to the world&#8217;s most popular open source database.
Register Now!
Benefits of Attending:


		Obtain free training and hands-on experience that will help you optimize, scale, and enhance your MySQL database deployments

		Learn how to integrate your applications with popular MySQL solutions from Sphinx, ScaleDB, among others

		Learn how to create a high availability (HA) environment for your MySQL databases using the latest HA solutions

		Gain valuable insights into how to adapt your MySQL solutions to the Cloud

		Hear from industry leaders about current and future trends surrounding the MySQL database and technology ecosystem

		Network with and learn from your peers in the MySQL Community

Who Should Attend:


		MySQL Database Administrators

		Application Developers building solutions on MySQL

		Development/Engineering Management

		IT Architects

Cost of Attending:


		The SkySQL &#38; MariaDB: Solutions Day for the MySQL Database &#8211; featuring keynotes from industry visionaries, six intensive tutorials, and lunch &#8211; is absolutely free to attendees.

To learn more, take a look at our event schedule, featured speakers, the venue. &#160;As well, follow our discussions on Twitter @skysql #mysqlday, and on Facebook.
Register Now!
&#160;]]></description>
			<content:encoded><![CDATA[<p>SkySQL and MariaDB are delighted to announce that we&rsquo;ll be co-hosting our first <a href="http://www.skysql.com/events/mysql-solutions-day">Solutions Day for the MySQL&reg; Database</a> on 13 April, 2012, at the <a href="http://www.skysql.com/events/mysql-solutions-day/venue">Hyatt Regency Santa Clara</a>.</p>
<p>
	During this one day event, attendees will receive <a href="http://www.skysql.com/events/mysql-solutions-day/schedule">free, hands-on training</a> on MySQL database solutions from the experts at SkySQL, MariaDB, Continuent, ScaleDB, Severalnines, Sphinx, and Webyog, among others.</p>
<p>	As well, SkySQL and MariaDB will bring together <a href="http://www.skysql.com/events/mysql-solutions-day/speakers">industry visionaries</a>, including Michael (Monty) Widenius and David Axmark, the original authors of the MySQL database, to share their insights on current and future trends pertaining to the world&rsquo;s most popular open source database.</p>
<p><a href="http://www.skysql.com/events/mysql-solutions-day"><strong>Register Now!</strong></a></p>
<p><strong>Benefits of Attending:</strong></p>
<ul>
<li>
		Obtain free training and hands-on experience that will help you optimize, scale, and enhance your MySQL database deployments</li>
<li>
		Learn how to integrate your applications with popular MySQL solutions from Sphinx, ScaleDB, among others</li>
<li>
		Learn how to create a high availability (HA) environment for your MySQL databases using the latest HA solutions</li>
<li>
		Gain valuable insights into how to adapt your MySQL solutions to the Cloud</li>
<li>
		Hear from industry leaders about current and future trends surrounding the MySQL database and technology ecosystem</li>
<li>
		Network with and learn from your peers in the MySQL Community</li>
</ul>
<p><strong>Who Should Attend:</strong></p>
<ul>
<li>
		MySQL Database Administrators</li>
<li>
		Application Developers building solutions on MySQL</li>
<li>
		Development/Engineering Management</li>
<li>
		IT Architects</li>
</ul>
<p><strong>Cost of Attending:</strong></p>
<ul>
<li>
		The SkySQL &amp; MariaDB: Solutions Day for the MySQL Database &ndash; featuring keynotes from industry visionaries, six intensive tutorials, and lunch &ndash; is absolutely free to attendees.</li>
</ul>
<p>To learn more, take a look at our event <a href="http://www.skysql.com/events/mysql-solutions-day/schedule">schedule</a>, featured <a href="http://%20http:0//www.skysql.com/events/mysql-solutions-day/speakers">speakers</a>, the <a href="http://www.skysql.com/events/mysql-solutions-day/venue">venue</a>. &nbsp;As well, follow our discussions on Twitter @skysql #mysqlday, and on <a href="http://www.faceook.com/skysql">Facebook</a>.</p>
<p><a href="http://www.skysql.com/events/mysql-solutions-day"><b>Register Now!</b></a></p>
<p>&nbsp;</p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31921&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31921&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/07/announcing-the-skysql-mariadb-solutions-day-for-the-mysql-database-free-training-for-developers-dbas-it-architects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing the SkySQL &amp; MariaDB Solutions Day for the MySQL® Database:  Free Training for Developers, DBAs, &amp; IT Architects</title>
		<link>http://www.skysql.com/blogs/kathoneil27/announcing-skysql-mariadb-solutions-day-mysql-database-free-training-developers-db?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=announcing-the-skysql-mariadb-solutions-day-for-the-mysql-database-free-training-for-developers-dbas-it-architects</link>
		<comments>http://www.skysql.com/blogs/kathoneil27/announcing-skysql-mariadb-solutions-day-mysql-database-free-training-developers-db#comments</comments>
		<pubDate>Tue, 07 Feb 2012 13:00:00 +0000</pubDate>
		<dc:creator>SkySQL</dc:creator>
				<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SkySQL]]></category>

		<guid isPermaLink="false">http://planetmysql.ru/?guid=c709458d15911e1bb2b1e16ddfc330bd</guid>
		<description><![CDATA[SkySQL and MariaDB are delighted to announce that we&#8217;ll be co-hosting our first Solutions Day for the MySQL&#174; Database on 13 April, 2012, at the Hyatt Regency Santa Clara.

	During this one day event, attendees will receive free, hands-on training on MySQL database solutions from the experts at SkySQL, MariaDB, Continuent, ScaleDB, Severalnines, Sphinx, and Webyog, among others.
	As well, SkySQL and MariaDB will bring together industry visionaries, including Michael (Monty) Widenius and David Axmark, the original authors of the MySQL database, to share their insights on current and future trends pertaining to the world&#8217;s most popular open source database.
Register Now!
Benefits of Attending:


		Obtain free training and hands-on experience that will help you optimize, scale, and enhance your MySQL database deployments

		Learn how to integrate your applications with popular MySQL solutions from Sphinx, ScaleDB, among others

		Learn how to create a high availability (HA) environment for your MySQL databases using the latest HA solutions

		Gain valuable insights into how to adapt your MySQL solutions to the Cloud

		Hear from industry leaders about current and future trends surrounding the MySQL database and technology ecosystem

		Network with and learn from your peers in the MySQL Community

Who Should Attend:


		MySQL Database Administrators

		Application Developers building solutions on MySQL

		Development/Engineering Management

		IT Architects

Cost of Attending:


		The SkySQL &#38; MariaDB: Solutions Day for the MySQL Database &#8211; featuring keynotes from industry visionaries, six intensive tutorials, and lunch &#8211; is absolutely free to attendees.

To learn more, take a look at our event schedule, featured speakers, the venue. &#160;As well, follow our discussions on Twitter @skysql #mysqlday, and on Facebook.
Register Now!
&#160;]]></description>
			<content:encoded><![CDATA[<p>SkySQL and MariaDB are delighted to announce that we&rsquo;ll be co-hosting our first <a href="http://www.skysql.com/events/mysql-solutions-day">Solutions Day for the MySQL&reg; Database</a> on 13 April, 2012, at the <a href="http://www.skysql.com/events/mysql-solutions-day/venue">Hyatt Regency Santa Clara</a>.</p>
<p>
	During this one day event, attendees will receive <a href="http://www.skysql.com/events/mysql-solutions-day/schedule">free, hands-on training</a> on MySQL database solutions from the experts at SkySQL, MariaDB, Continuent, ScaleDB, Severalnines, Sphinx, and Webyog, among others.</p>
<p>	As well, SkySQL and MariaDB will bring together <a href="http://www.skysql.com/events/mysql-solutions-day/speakers">industry visionaries</a>, including Michael (Monty) Widenius and David Axmark, the original authors of the MySQL database, to share their insights on current and future trends pertaining to the world&rsquo;s most popular open source database.</p>
<p><a href="http://www.skysql.com/events/mysql-solutions-day"><strong>Register Now!</strong></a></p>
<p><strong>Benefits of Attending:</strong></p>
<ul>
<li>
		Obtain free training and hands-on experience that will help you optimize, scale, and enhance your MySQL database deployments</li>
<li>
		Learn how to integrate your applications with popular MySQL solutions from Sphinx, ScaleDB, among others</li>
<li>
		Learn how to create a high availability (HA) environment for your MySQL databases using the latest HA solutions</li>
<li>
		Gain valuable insights into how to adapt your MySQL solutions to the Cloud</li>
<li>
		Hear from industry leaders about current and future trends surrounding the MySQL database and technology ecosystem</li>
<li>
		Network with and learn from your peers in the MySQL Community</li>
</ul>
<p><strong>Who Should Attend:</strong></p>
<ul>
<li>
		MySQL Database Administrators</li>
<li>
		Application Developers building solutions on MySQL</li>
<li>
		Development/Engineering Management</li>
<li>
		IT Architects</li>
</ul>
<p><strong>Cost of Attending:</strong></p>
<ul>
<li>
		The SkySQL &amp; MariaDB: Solutions Day for the MySQL Database &ndash; featuring keynotes from industry visionaries, six intensive tutorials, and lunch &ndash; is absolutely free to attendees.</li>
</ul>
<p>To learn more, take a look at our event <a href="http://www.skysql.com/events/mysql-solutions-day/schedule">schedule</a>, featured <a href="http://%20http:0//www.skysql.com/events/mysql-solutions-day/speakers">speakers</a>, the <a href="http://www.skysql.com/events/mysql-solutions-day/venue">venue</a>. &nbsp;As well, follow our discussions on Twitter @skysql #mysqlday, and on <a href="http://www.faceook.com/skysql">Facebook</a>.</p>
<p><a href="http://www.skysql.com/events/mysql-solutions-day"><b>Register Now!</b></a></p>
<p>&nbsp;</p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31921&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31921&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/07/announcing-the-skysql-mariadb-solutions-day-for-the-mysql-database-free-training-for-developers-dbas-it-architects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replication features of 2011 by Sergey Petrunia</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/replication-features-of-2011-by-sergey-petrunia?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=replication-features-of-2011-by-sergey-petrunia</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/replication-features-of-2011-by-sergey-petrunia#comments</comments>
		<pubDate>Sun, 05 Feb 2012 14:32:45 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[fosdem]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Replication]]></category>
		<category><![CDATA[Sergey Petrunia]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2295</guid>
		<description><![CDATA[Sergey Petrunia of the MariaDB project &#38; Monty Program.
MySQL 5.5 GA at the end of 2010. MariaDB 5.3 RC towards the end of 2011 (beta in June 2011).
MySQL 5.5 is merged to Percona Server 5.5 which included semi-sync replication, slave fsync options, atuomatic relay log recovery, RBR slave type conversions (question if this is useful or not), individual log flushing (very useful, but not many using), replication heartbeat, SHOW RELAYLOG EVENTS. About 2/3rds of the audience use MySQL 5.5 in production, with only 2 people using semi-sync replication.
MariaDB 5.3 brings replication features brings group commit in the binary log, which is merged into Percona Server 5.5. Checksums for binlog events which is merged from MySQL 5.6. Sergey goes in-depth about the group commit for the binary log. To find out a little more about MariaDB replication changes, see Replication in the Knowledgebase.
There are several implementations of group commit. Facebook started it, followed by MariaDB &#38; Oracle. Percona 5.5 is GA so the feature is there, its not in MySQL 5.6 (yet?), and MariaDB 5.3 is where its at. Seems like the MariaDB implementation is the best so far &#8211; refer to the Facebook benchmark performed by Mark Callaghan.
Annotated RBR poses a compatibility problem. MariaDB 5.3 has annotate_rows, while MySQL 5.6 has rows_query event. They are different events. So you cannot have a MariaDB 5.3 master and a MySQL 5.6 slave at this moment. So MySQL 5.6 will have a flag to mark &#8220;ignorable&#8221; binlog events which will be merged into MariaDB and this will make binary logs compatible again.
There is now also optimized RBR for tables with no primary key.
MySQL 5.6 also has crash-safe slave (replication information stored in tables). Crash-safe master (binary log recovery if the server starts &#38; sees the binary log is corrupted). Parallel event execution is something that is new in MySQL 5.6 which is the most important feature for Sergey.
Pre-heating: There is mk-slave-prefetch (famous quote: &#8220;Please don&#8217;t use mk-slave-prefetch on #MySQL unless you are Facebook.&#8221;). There is replication booster by Yoshinori Matsunobu. There is a Python version of mk-slave-prefetch that Facebook uses.


Related posts:MariaDB 5.3 query optimizer by Sergey Petrunia
Where is MariaDB today?
Building simple &#038; complex replication clusters with Tungsten Replicator by Giuseppe Maxia]]></description>
			<content:encoded><![CDATA[<p><a href="http://s.petrunia.net/blog/">Sergey Petrunia</a> of the <a href="http://mariadb.org/">MariaDB</a> project &amp;<a href="http://montyprogram.com/"> Monty Program</a>.</p>
<p>MySQL 5.5 GA at the end of 2010. MariaDB 5.3 RC towards the end of 2011 (beta in June 2011).</p>
<p>MySQL 5.5 is merged to Percona Server 5.5 which included semi-sync replication, slave fsync options, atuomatic relay log recovery, RBR slave type conversions (question if this is useful or not), individual log flushing (very useful, but not many using), replication heartbeat, SHOW RELAYLOG EVENTS. About 2/3rds of the audience use MySQL 5.5 in production, with only 2 people using semi-sync replication.</p>
<p>MariaDB 5.3 brings replication features brings group commit in the binary log, which is merged into Percona Server 5.5. Checksums for binlog events which is merged from MySQL 5.6. Sergey goes in-depth about the <a href="http://kb.askmonty.org/en/group-commit-for-the-binary-log">group commit for the binary log</a>. To find out a little more about MariaDB replication changes, see <a href="http://kb.askmonty.org/en/replication">Replication</a> in the Knowledgebase.</p>
<p>There are several implementations of group commit. Facebook started it, followed by MariaDB &amp; Oracle. Percona 5.5 is GA so the feature is there, its not in MySQL 5.6 (yet?), and MariaDB 5.3 is where its at. Seems like the MariaDB implementation is the best so far &#8211; refer to the <a href="https://www.facebook.com/note.php?note_id=10150261692455933">Facebook benchmark</a> performed by Mark Callaghan.</p>
<p><a href="http://kb.askmonty.org/en/annotate_rows_log_event">Annotated RBR</a> poses a compatibility problem. MariaDB 5.3 has annotate_rows, while MySQL 5.6 has rows_query event. They are different events. So you cannot have a MariaDB 5.3 master and a MySQL 5.6 slave at this moment. So MySQL 5.6 will have a flag to mark &#8220;ignorable&#8221; binlog events which will be merged into MariaDB and this will make binary logs compatible again.</p>
<p>There is now also optimized <a href="http://kb.askmonty.org/en/row-based-replication-with-no-primary-key">RBR for tables with no primary key</a>.</p>
<p>MySQL 5.6 also has crash-safe slave (replication information stored in tables). Crash-safe master (binary log recovery if the server starts &amp; sees the binary log is corrupted). <a href="http://dev.mysql.com/doc/refman/5.6/en/news-5-6-3.html">Parallel event execution</a> is something that is new in MySQL 5.6 which is the most important feature for Sergey.</p>
<p>Pre-heating: There is mk-slave-prefetch (<a href="https://twitter.com/#!/xaprb/status/128876485472829440">famous quote</a>: &#8220;Please don&#8217;t use mk-slave-prefetch on #MySQL unless you are Facebook.&#8221;). There is <a href="http://yoshinorimatsunobu.blogspot.com/2011/10/making-slave-pre-fetching-work-better.html">replication booster</a> by Yoshinori Matsunobu. There is a <a href="http://dom.as/2011/12/03/replication-prefetching/">Python version</a> of mk-slave-prefetch that Facebook uses.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia" rel="bookmark" title="Permanent Link: MariaDB 5.3 query optimizer by Sergey Petrunia">MariaDB 5.3 query optimizer by Sergey Petrunia</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2011/04/20/where-is-mariadb-today" rel="bookmark" title="Permanent Link: Where is MariaDB today?">Where is MariaDB today?</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2012/02/05/building-simple-complex-replication-clusters-with-tungsten-replicator-by-giuseppe-maxia" rel="bookmark" title="Permanent Link: Building simple &amp; complex replication clusters with Tungsten Replicator by Giuseppe Maxia">Building simple &#038; complex replication clusters with Tungsten Replicator by Giuseppe Maxia</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31906&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31906&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/replication-features-of-2011-by-sergey-petrunia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizing your InnoDB buffer pool usage by Steve Hardy</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/optimizing-your-innodb-buffer-pool-usage-by-steve-hardy?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=optimizing-your-innodb-buffer-pool-usage-by-steve-hardy</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/optimizing-your-innodb-buffer-pool-usage-by-steve-hardy#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:29:02 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[fosdem]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Steve Hardy]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2289</guid>
		<description><![CDATA[Steve Hardy of Zarafa.
Work that has been done to make Zarafa better. Why do you optimise your buffer pool? To decrease your I/O load. How can you do it? Buy more RAM, page compression, less (smaller) data, rearrange data.
MariaDB or Percona Server allows you to inspect your buffer pool (unsure if this is now available in MySQL 5.6). Giuseppe in the audience says this is available in MySQL 5.6, but Steve used this on MariaDB 5.2.
Strategies to fix it: Make records smaller. Remove indexes if you can use others almost as efficiently. Make records that are accessed around the same time have a higher chance of being on the same page. Use page compression. Buy more RAM. Try Batched Key Access (BKA) in MariaDB 5.3+.
Best to view the presentation since there are specific examples that speak about how Zarafa solves their problems like a user trying to sort their email, etc.


Related posts:Batched Key Access Join Previews available
MariaDB 5.3 query optimizer by Sergey Petrunia
MariaDB/MySQL users in Paris &#038; Brussels]]></description>
			<content:encoded><![CDATA[<p>Steve Hardy of <a href="http://www.zarafa.com/">Zarafa</a>.</p>
<p>Work that has been done to make Zarafa better. Why do you optimise your buffer pool? To decrease your I/O load. How can you do it? Buy more RAM, page compression, less (smaller) data, rearrange data.</p>
<p>MariaDB or Percona Server allows you to inspect your <a href="http://www.percona.com/docs/wiki/percona-server%3Afeatures%3Ainnodb_buffer_pool_pages">buffer pool</a> (unsure if this is now available in MySQL 5.6). Giuseppe in the audience says this is available in MySQL 5.6, but Steve used this on MariaDB 5.2.</p>
<p>Strategies to fix it: Make records smaller. Remove indexes if you can use others almost as efficiently. Make records that are accessed around the same time have a higher chance of being on the same page. Use page compression. Buy more RAM. Try Batched Key Access (BKA) in MariaDB 5.3+.</p>
<p>Best to view the presentation since there are specific examples that speak about how Zarafa solves their problems like a user trying to sort their email, etc.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2008/04/09/batched-key-access-join-previews-available" rel="bookmark" title="Permanent Link: Batched Key Access Join Previews available">Batched Key Access Join Previews available</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia" rel="bookmark" title="Permanent Link: MariaDB 5.3 query optimizer by Sergey Petrunia">MariaDB 5.3 query optimizer by Sergey Petrunia</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2012/01/30/mariadbmysql-users-in-paris-brussels" rel="bookmark" title="Permanent Link: MariaDB/MySQL users in Paris &amp; Brussels">MariaDB/MySQL users in Paris &#038; Brussels</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31904&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31904&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/optimizing-your-innodb-buffer-pool-usage-by-steve-hardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizing your InnoDB buffer pool usage by Steve Hardy</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/optimizing-your-innodb-buffer-pool-usage-by-steve-hardy?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=optimizing-your-innodb-buffer-pool-usage-by-steve-hardy</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/optimizing-your-innodb-buffer-pool-usage-by-steve-hardy#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:29:02 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[fosdem]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2289</guid>
		<description><![CDATA[Steve Hardy of Zarafa.
Work that has been done to make Zarafa better. Why do you optimise your buffer pool? To decrease your I/O load. How can you do it? Buy more RAM, page compression, less (smaller) data, rearrange data.
MariaDB or Percona Server allows you to inspect your buffer pool (unsure if this is now available in MySQL 5.6). Giuseppe in the audience says this is available in MySQL 5.6, but Steve used this on MariaDB 5.2.
Strategies to fix it: Make records smaller. Remove indexes if you can use others almost as efficiently. Make records that are accessed around the same time have a higher chance of being on the same page. Use page compression. Buy more RAM. Try Batched Key Access (BKA) in MariaDB 5.3+.
Best to view the presentation since there are specific examples that speak about how Zarafa solves their problems like a user trying to sort their email, etc.


Related posts:Batched Key Access Join Previews available
MariaDB 5.3 query optimizer by Sergey Petrunia
MariaDB/MySQL users in Paris &#038; Brussels]]></description>
			<content:encoded><![CDATA[<p>Steve Hardy of <a href="http://www.zarafa.com/">Zarafa</a>.</p>
<p>Work that has been done to make Zarafa better. Why do you optimise your buffer pool? To decrease your I/O load. How can you do it? Buy more RAM, page compression, less (smaller) data, rearrange data.</p>
<p>MariaDB or Percona Server allows you to inspect your <a href="http://www.percona.com/docs/wiki/percona-server%3Afeatures%3Ainnodb_buffer_pool_pages">buffer pool</a> (unsure if this is now available in MySQL 5.6). Giuseppe in the audience says this is available in MySQL 5.6, but Steve used this on MariaDB 5.2.</p>
<p>Strategies to fix it: Make records smaller. Remove indexes if you can use others almost as efficiently. Make records that are accessed around the same time have a higher chance of being on the same page. Use page compression. Buy more RAM. Try Batched Key Access (BKA) in MariaDB 5.3+.</p>
<p>Best to view the presentation since there are specific examples that speak about how Zarafa solves their problems like a user trying to sort their email, etc.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2008/04/09/batched-key-access-join-previews-available" rel="bookmark" title="Permanent Link: Batched Key Access Join Previews available">Batched Key Access Join Previews available</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia" rel="bookmark" title="Permanent Link: MariaDB 5.3 query optimizer by Sergey Petrunia">MariaDB 5.3 query optimizer by Sergey Petrunia</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2012/01/30/mariadbmysql-users-in-paris-brussels" rel="bookmark" title="Permanent Link: MariaDB/MySQL users in Paris &amp; Brussels">MariaDB/MySQL users in Paris &#038; Brussels</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31904&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31904&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/optimizing-your-innodb-buffer-pool-usage-by-steve-hardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Practical MySQL Indexing guidelines by Stéphane Combaudon</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/practical-mysql-indexing-guidelines-by-stephane-combaudon?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=practical-mysql-indexing-guidelines-by-stephane-combaudon</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/practical-mysql-indexing-guidelines-by-stephane-combaudon#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:01:06 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[fosdem]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Stéphane Combaudon]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2286</guid>
		<description><![CDATA[Stéphane Combaudon of Dailymotion.
Index: separate data structure to speed up SELECTs. Think of index in a book. In MySQL, key=index. Consider that indexes are trees.
InnoDB&#8217;s clustered index &#8211; data is stored with the Primary Key (PK) so PK lookups are fast. Secondary keys hold the PK values. Designing InnoDB PK&#8217;s with care is critical for performance.
An index can filter and/or sort values. An index can contain all the fields needed for the query you don&#8217;t need to go to the table (a covering index).
MySQL only uses 1 index per table per query (not 100% true &#8211; OR clauses), so think of a composite index when you can. Can&#8217;t index TEXT fields (use a prefix). Same for BLOBs and long VARCHARs.
Indexes: speed up queries, increases the size of your dataset, slows down writes. How big is the write slowdown? Simple test by Stephane, for in-memory workloads he says adding 2 keys makes performance 2x worse; for on-disk workloads he says its 40x worse. Never neglect the slowdown of your writes when you have an index. There is a graph in the slidedeck.
What is a bad index? Unused indexes. Redundant indexes. Duplicate indexes.
Indexing is not an exact science, but guessing is probably not the best way to design indexes. Always check your assumptions &#8211; EXPLAIN does not tell you everything, time your queries with different index combinations, SHOW PROFILES is often valuable. Slow query log is a good place to start.
Many slides with examples, so I hope Stephane posts the deck soon. If possible, try to sort &#38; filter (an index is not always the best for sorting).
InnoDB&#8217;s clustered index is always covering. SELECT by PK is the fastest access with InnoDB.
An index can give you 3 benefits: filtering, sorting, covering.
See Userstats v2 - you need Percona Server or MariaDB 5.2+. See also pt-duplicate-key-checker to find redundant indexes easily. See also pt-index-usage to help answer questions not covered by userstats.


Related posts:Sphinx user stories by Stéphane Varoqui
MySQL Full Text Search by Alex Rubin
Morning sessions at MySQL MiniConf]]></description>
			<content:encoded><![CDATA[<p>Stéphane Combaudon of Dailymotion.</p>
<p>Index: separate data structure to speed up SELECTs. Think of index in a book. In MySQL, key=index. Consider that indexes are trees.</p>
<p>InnoDB&#8217;s clustered index &#8211; data is stored with the Primary Key (PK) so PK lookups are fast. Secondary keys hold the PK values. Designing InnoDB PK&#8217;s with care is critical for performance.</p>
<p>An index can filter and/or sort values. An index can contain all the fields needed for the query you don&#8217;t need to go to the table (a covering index).</p>
<p>MySQL only uses 1 index per table per query (not 100% true &#8211; OR clauses), so think of a composite index when you can. Can&#8217;t index TEXT fields (use a prefix). Same for BLOBs and long VARCHARs.</p>
<p>Indexes: speed up queries, increases the size of your dataset, slows down writes. How big is the write slowdown? Simple test by Stephane, for in-memory workloads he says adding 2 keys makes performance 2x worse; for on-disk workloads he says its 40x worse. Never neglect the slowdown of your writes when you have an index. There is a graph in the slidedeck.</p>
<p>What is a bad index? Unused indexes. Redundant indexes. Duplicate indexes.</p>
<p>Indexing is not an exact science, but guessing is probably not the best way to design indexes. Always check your assumptions &#8211; EXPLAIN does not tell you everything, time your queries with different index combinations, SHOW PROFILES is often valuable. Slow query log is a good place to start.</p>
<p>Many slides with examples, so I hope Stephane posts the deck soon. If possible, try to sort &amp; filter (an index is not always the best for sorting).</p>
<p>InnoDB&#8217;s clustered index is always covering. SELECT by PK is the fastest access with InnoDB.</p>
<p>An index can give you 3 benefits: filtering, sorting, covering.</p>
<p>See <a href="http://kb.askmonty.org/en/user-statistics">Userstats v2 </a>- you need Percona Server or MariaDB 5.2+. See also pt-duplicate-key-checker to find redundant indexes easily. See also pt-index-usage to help answer questions not covered by userstats.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2012/02/05/sphinx-user-stories-by-stephane-varoqui" rel="bookmark" title="Permanent Link: Sphinx user stories by Stéphane Varoqui">Sphinx user stories by Stéphane Varoqui</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2008/04/15/mysql-full-text-search-by-alex-rubin" rel="bookmark" title="Permanent Link: MySQL Full Text Search by Alex Rubin">MySQL Full Text Search by Alex Rubin</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2008/01/28/morning-sessions-at-mysql-miniconf" rel="bookmark" title="Permanent Link: Morning sessions at MySQL MiniConf">Morning sessions at MySQL MiniConf</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31903&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31903&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/practical-mysql-indexing-guidelines-by-stephane-combaudon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Practical MySQL Indexing guidelines by Stéphane Combaudon</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/practical-mysql-indexing-guidelines-by-stephane-combaudon?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=practical-mysql-indexing-guidelines-by-stephane-combaudon</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/practical-mysql-indexing-guidelines-by-stephane-combaudon#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:01:06 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[fosdem]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Stéphane Combaudon]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2286</guid>
		<description><![CDATA[Stéphane Combaudon of Dailymotion.
Index: separate data structure to speed up SELECTs. Think of index in a book. In MySQL, key=index. Consider that indexes are trees.
InnoDB&#8217;s clustered index &#8211; data is stored with the Primary Key (PK) so PK lookups are fast. Secondary keys hold the PK values. Designing InnoDB PK&#8217;s with care is critical for performance.
An index can filter and/or sort values. An index can contain all the fields needed for the query you don&#8217;t need to go to the table (a covering index).
MySQL only uses 1 index per table per query (not 100% true &#8211; OR clauses), so think of a composite index when you can. Can&#8217;t index TEXT fields (use a prefix). Same for BLOBs and long VARCHARs.
Indexes: speed up queries, increases the size of your dataset, slows down writes. How big is the write slowdown? Simple test by Stephane, for in-memory workloads he says adding 2 keys makes performance 2x worse; for on-disk workloads he says its 40x worse. Never neglect the slowdown of your writes when you have an index. There is a graph in the slidedeck.
What is a bad index? Unused indexes. Redundant indexes. Duplicate indexes.
Indexing is not an exact science, but guessing is probably not the best way to design indexes. Always check your assumptions &#8211; EXPLAIN does not tell you everything, time your queries with different index combinations, SHOW PROFILES is often valuable. Slow query log is a good place to start.
Many slides with examples, so I hope Stephane posts the deck soon. If possible, try to sort &#38; filter (an index is not always the best for sorting).
InnoDB&#8217;s clustered index is always covering. SELECT by PK is the fastest access with InnoDB.
An index can give you 3 benefits: filtering, sorting, covering.
See Userstats v2 - you need Percona Server or MariaDB 5.2+. See also pt-duplicate-key-checker to find redundant indexes easily. See also pt-index-usage to help answer questions not covered by userstats.


Related posts:Sphinx user stories by Stéphane Varoqui
MySQL Full Text Search by Alex Rubin
Morning sessions at MySQL MiniConf]]></description>
			<content:encoded><![CDATA[<p>Stéphane Combaudon of Dailymotion.</p>
<p>Index: separate data structure to speed up SELECTs. Think of index in a book. In MySQL, key=index. Consider that indexes are trees.</p>
<p>InnoDB&#8217;s clustered index &#8211; data is stored with the Primary Key (PK) so PK lookups are fast. Secondary keys hold the PK values. Designing InnoDB PK&#8217;s with care is critical for performance.</p>
<p>An index can filter and/or sort values. An index can contain all the fields needed for the query you don&#8217;t need to go to the table (a covering index).</p>
<p>MySQL only uses 1 index per table per query (not 100% true &#8211; OR clauses), so think of a composite index when you can. Can&#8217;t index TEXT fields (use a prefix). Same for BLOBs and long VARCHARs.</p>
<p>Indexes: speed up queries, increases the size of your dataset, slows down writes. How big is the write slowdown? Simple test by Stephane, for in-memory workloads he says adding 2 keys makes performance 2x worse; for on-disk workloads he says its 40x worse. Never neglect the slowdown of your writes when you have an index. There is a graph in the slidedeck.</p>
<p>What is a bad index? Unused indexes. Redundant indexes. Duplicate indexes.</p>
<p>Indexing is not an exact science, but guessing is probably not the best way to design indexes. Always check your assumptions &#8211; EXPLAIN does not tell you everything, time your queries with different index combinations, SHOW PROFILES is often valuable. Slow query log is a good place to start.</p>
<p>Many slides with examples, so I hope Stephane posts the deck soon. If possible, try to sort &amp; filter (an index is not always the best for sorting).</p>
<p>InnoDB&#8217;s clustered index is always covering. SELECT by PK is the fastest access with InnoDB.</p>
<p>An index can give you 3 benefits: filtering, sorting, covering.</p>
<p>See <a href="http://kb.askmonty.org/en/user-statistics">Userstats v2 </a>- you need Percona Server or MariaDB 5.2+. See also pt-duplicate-key-checker to find redundant indexes easily. See also pt-index-usage to help answer questions not covered by userstats.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2012/02/05/sphinx-user-stories-by-stephane-varoqui" rel="bookmark" title="Permanent Link: Sphinx user stories by Stéphane Varoqui">Sphinx user stories by Stéphane Varoqui</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2008/04/15/mysql-full-text-search-by-alex-rubin" rel="bookmark" title="Permanent Link: MySQL Full Text Search by Alex Rubin">MySQL Full Text Search by Alex Rubin</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2008/01/28/morning-sessions-at-mysql-miniconf" rel="bookmark" title="Permanent Link: Morning sessions at MySQL MiniConf">Morning sessions at MySQL MiniConf</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31903&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31903&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/practical-mysql-indexing-guidelines-by-stephane-combaudon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB 5.3 query optimizer by Sergey Petrunia</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mariadb-5-3-query-optimizer-by-sergey-petrunia</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia#comments</comments>
		<pubDate>Sun, 05 Feb 2012 09:59:23 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimizer]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2256</guid>
		<description><![CDATA[Sergey Petrunia of the MariaDB project.
What exactly is not working in MySQL? MySQL is poor at decision support/analytics. With large datasets you need special disk access strategies. Complex queries like insufficient subquery support and big joins are common int he MySQL world.
DBT-3 is used, scale=30, with a 75GB database and run a query &#8220;average price of item between a range of dates&#8221;. Query time took some 45 minutes to execute. Why? Run iostat -x to see what is going on. See that the CPU is mostly idle, so its an IO-bound load. Next you run SHOW ENGINE INNODB STATUS and you&#8217;ll see how many reads per second is happening. Possible solution is to get more RAM or get an SSD (good to speedup OLTP workloads, but analytics over data is probably not viable since SSDs are small and not cheap).
The MySQL/MariaDB solution to the above problem is improved disk access strategies: multi-range read (MRR) and batched key access (BKA). In MariaDB, MRR/BKA need to be enabled (they are not turned on by default). The query time only took 3 minutes 48 seconds, which is some 11.8x faster than the previous 45 minutes.If you look at EXPLAIN output, its almost as same as before, expect the Extra filed. iostat -x will now show some CPU load, svctm down as well (so its not random disk seeks anymore &#8212; some 8ms seek time on a regular 7,200rpm disk), SHOW ENGINE INNODB STATUS will show some 10,000 reads per second rather than the previous 200.
If you are on Fedora, check out the Systemtap feature to look at I/O patterns. stap deviceseeks.stp -c &#8220;sleep 60&#8243;.
Subqueries handling in MariaDB 5.3: check out the Subquery Optimizations Map. Only about 10% of the audience use optimizer hints in MySQL.


Related posts:MariaDB 5.1.42 released!
MariaDB 5.1.44 released
Where is MariaDB today?]]></description>
			<content:encoded><![CDATA[<p><a href="http://s.petrunia.net/blog/">Sergey Petrunia</a> of the <a href="http://mariadb.org/">MariaDB</a> project.</p>
<p>What exactly is not working in MySQL? MySQL is poor at decision support/analytics. With large datasets you need special disk access strategies. Complex queries like insufficient subquery support and big joins are common int he MySQL world.</p>
<p>DBT-3 is used, scale=30, with a 75GB database and run a query &#8220;average price of item between a range of dates&#8221;. Query time took some 45 minutes to execute. Why? Run iostat -x to see what is going on. See that the CPU is mostly idle, so its an IO-bound load. Next you run SHOW ENGINE INNODB STATUS and you&#8217;ll see how many reads per second is happening. Possible solution is to get more RAM or get an SSD (good to speedup OLTP workloads, but analytics over data is probably not viable since SSDs are small and not cheap).</p>
<p>The MySQL/MariaDB solution to the above problem is improved disk access strategies: <a href="http://kb.askmonty.org/en/multi-range-read-optimization">multi-range read (MRR)</a> and batched key access (BKA). In MariaDB, MRR/BKA need to be enabled (they are not turned on by default). The query time only took 3 minutes 48 seconds, which is some 11.8x faster than the previous 45 minutes.If you look at EXPLAIN output, its almost as same as before, expect the Extra filed. iostat -x will now show some CPU load, svctm down as well (so its not random disk seeks anymore &#8212; some 8ms seek time on a regular 7,200rpm disk), SHOW ENGINE INNODB STATUS will show some 10,000 reads per second rather than the previous 200.</p>
<p>If you are on Fedora, check out the Systemtap feature to look at I/O patterns. stap <a href="http://sourceware.org/systemtap/examples/io/deviceseeks.stp">deviceseeks.stp</a> -c &#8220;sleep 60&#8243;.</p>
<p>Subqueries handling in MariaDB 5.3: check out the <a href="http://kb.askmonty.org/en/subquery-optimizations-map">Subquery Optimizations Map</a>. Only about 10% of the audience use optimizer hints in MySQL.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2010/02/05/mariadb-5-1-42-released" rel="bookmark" title="Permanent Link: MariaDB 5.1.42 released!">MariaDB 5.1.42 released!</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2010/04/02/mariadb-5-1-44-released" rel="bookmark" title="Permanent Link: MariaDB 5.1.44 released">MariaDB 5.1.44 released</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2011/04/20/where-is-mariadb-today" rel="bookmark" title="Permanent Link: Where is MariaDB today?">Where is MariaDB today?</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31897&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31897&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB 5.3 query optimizer by Sergey Petrunia</title>
		<link>http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mariadb-5-3-query-optimizer-by-sergey-petrunia</link>
		<comments>http://www.bytebot.net/blog/archives/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia#comments</comments>
		<pubDate>Sun, 05 Feb 2012 09:59:23 +0000</pubDate>
		<dc:creator>Colin Charles</dc:creator>
				<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimizer]]></category>
		<category><![CDATA[Sergey Petrunia]]></category>

		<guid isPermaLink="false">http://www.bytebot.net/blog/?p=2256</guid>
		<description><![CDATA[Sergey Petrunia of the MariaDB project.
What exactly is not working in MySQL? MySQL is poor at decision support/analytics. With large datasets you need special disk access strategies. Complex queries like insufficient subquery support and big joins are common int he MySQL world.
DBT-3 is used, scale=30, with a 75GB database and run a query &#8220;average price of item between a range of dates&#8221;. Query time took some 45 minutes to execute. Why? Run iostat -x to see what is going on. See that the CPU is mostly idle, so its an IO-bound load. Next you run SHOW ENGINE INNODB STATUS and you&#8217;ll see how many reads per second is happening. Possible solution is to get more RAM or get an SSD (good to speedup OLTP workloads, but analytics over data is probably not viable since SSDs are small and not cheap).
The MySQL/MariaDB solution to the above problem is improved disk access strategies: multi-range read (MRR) and batched key access (BKA). In MariaDB, MRR/BKA need to be enabled (they are not turned on by default). The query time only took 3 minutes 48 seconds, which is some 11.8x faster than the previous 45 minutes.If you look at EXPLAIN output, its almost as same as before, expect the Extra filed. iostat -x will now show some CPU load, svctm down as well (so its not random disk seeks anymore &#8212; some 8ms seek time on a regular 7,200rpm disk), SHOW ENGINE INNODB STATUS will show some 10,000 reads per second rather than the previous 200.
If you are on Fedora, check out the Systemtap feature to look at I/O patterns. stap deviceseeks.stp -c &#8220;sleep 60&#8243;.
Subqueries handling in MariaDB 5.3: check out the Subquery Optimizations Map. Only about 10% of the audience use optimizer hints in MySQL.


Related posts:MariaDB 5.1.42 released!
MariaDB 5.1.44 released
Where is MariaDB today?]]></description>
			<content:encoded><![CDATA[<p><a href="http://s.petrunia.net/blog/">Sergey Petrunia</a> of the <a href="http://mariadb.org/">MariaDB</a> project.</p>
<p>What exactly is not working in MySQL? MySQL is poor at decision support/analytics. With large datasets you need special disk access strategies. Complex queries like insufficient subquery support and big joins are common int he MySQL world.</p>
<p>DBT-3 is used, scale=30, with a 75GB database and run a query &#8220;average price of item between a range of dates&#8221;. Query time took some 45 minutes to execute. Why? Run iostat -x to see what is going on. See that the CPU is mostly idle, so its an IO-bound load. Next you run SHOW ENGINE INNODB STATUS and you&#8217;ll see how many reads per second is happening. Possible solution is to get more RAM or get an SSD (good to speedup OLTP workloads, but analytics over data is probably not viable since SSDs are small and not cheap).</p>
<p>The MySQL/MariaDB solution to the above problem is improved disk access strategies: <a href="http://kb.askmonty.org/en/multi-range-read-optimization">multi-range read (MRR)</a> and batched key access (BKA). In MariaDB, MRR/BKA need to be enabled (they are not turned on by default). The query time only took 3 minutes 48 seconds, which is some 11.8x faster than the previous 45 minutes.If you look at EXPLAIN output, its almost as same as before, expect the Extra filed. iostat -x will now show some CPU load, svctm down as well (so its not random disk seeks anymore &#8212; some 8ms seek time on a regular 7,200rpm disk), SHOW ENGINE INNODB STATUS will show some 10,000 reads per second rather than the previous 200.</p>
<p>If you are on Fedora, check out the Systemtap feature to look at I/O patterns. stap <a href="http://sourceware.org/systemtap/examples/io/deviceseeks.stp">deviceseeks.stp</a> -c &#8220;sleep 60&#8243;.</p>
<p>Subqueries handling in MariaDB 5.3: check out the <a href="http://kb.askmonty.org/en/subquery-optimizations-map">Subquery Optimizations Map</a>. Only about 10% of the audience use optimizer hints in MySQL.</p>


<p>Related posts:<ol><li><a href="http://www.bytebot.net/blog/archives/2010/02/05/mariadb-5-1-42-released" rel="bookmark" title="Permanent Link: MariaDB 5.1.42 released!">MariaDB 5.1.42 released!</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2010/04/02/mariadb-5-1-44-released" rel="bookmark" title="Permanent Link: MariaDB 5.1.44 released">MariaDB 5.1.44 released</a></li>
<li><a href="http://www.bytebot.net/blog/archives/2011/04/20/where-is-mariadb-today" rel="bookmark" title="Permanent Link: Where is MariaDB today?">Where is MariaDB today?</a></li>
</ol></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31897&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=31897&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://planetmysql.ru/2012/02/05/mariadb-5-3-query-optimizer-by-sergey-petrunia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

