<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1465698062117590441</id><updated>2012-03-15T12:06:04.077-07:00</updated><category term='Disk Temporary Tables'/><category term='read_buffer_size Tuning'/><category term='SQL'/><category term='read_rnd_buffer_size'/><category term='Stability'/><category term='TokuDB'/><category term='MariaDB'/><category term='SUM'/><category term='NoSQL'/><category term='InfiniDB'/><category term='optimizer_switch'/><category term='Handler'/><category term='derived_merge'/><title type='text'>varokism</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-3188820909545909197</id><published>2011-12-21T13:08:00.000-08:00</published><updated>2012-01-01T15:21:51.000-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='read_rnd_buffer_size'/><category scheme='http://www.blogger.com/atom/ns#' term='read_buffer_size Tuning'/><title type='text'>Fine tuning read_rnd_buffer_size and read_buffer_size</title><content type='html'>Those variables are&amp;nbsp; easy to tune.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-AC6Q7rzjl5Ev2N4jKN2L-BbiiTlXo3sanDhzKRpGVP7HS8QQltbo7KXRelZIeXiwKVp0QLJ9ecXaqbb2v9qkv3f0gPD1mlNuP_NCqhOwsIhOqmh9A" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="312" src="http://3.bp.blogspot.com/-AC6Q7rzjl5Ev2N4jKN2L-BbiiTlXo3sanDhzKRpGVP7HS8QQltbo7KXRelZIeXiwKVp0QLJ9ecXaqbb2v9qkv3f0gPD1mlNuP_NCqhOwsIhOqmh9A" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;The evidence popup here between 128 and 256K for in memory workload. &lt;br /&gt;&lt;br /&gt;My SQL SQL layer is optimistic and think that data will come from the storage engine at the speed of the memory bus , but in practice for IO bound workload and range scan in the table order it could not be the case , for MyISAM when reading from tables on disk, IOs are aligned on the read buffer so it may be of an intrest to increase it here.&lt;br /&gt;&lt;br /&gt;In myisam.cc my_default_record_cache_size is set to&amp;nbsp; global_system_variables.read_buff_size;&lt;br /&gt;&lt;br /&gt;To show IO size :&lt;br /&gt;strace -p id_mysqld -e read -e write&lt;br /&gt;&lt;br /&gt;If&amp;nbsp; monitoring smaller IO&amp;nbsp; request size from iostat&amp;nbsp; -xm, it may be that you are suffering fragmentation that does not help the FS cache to serve you efficiently. Optimize table ,Alter table order is a great help in MyISAM &lt;br /&gt;&lt;br /&gt;In InnoDB the difference come with prefetch trigger when no fragmentation. It is the case when rows are inserted in increasing primary key order. So conservative read and rnd buffer values will speed up&amp;nbsp; the data move from the buffer_pool to the SQL thread with almost no impact on the disk speed rate .&lt;br /&gt;&lt;br /&gt;Note that the read_rnd_buff will size the thread record cache when rr_sequential and rr_quick in case of full scan and some range scan &lt;br /&gt;&lt;br /&gt;In record.cc&lt;br /&gt;&lt;br /&gt;static int init_rr_cache(THD *thd, READ_RECORD *info)&lt;br /&gt;&amp;nbsp;info-&amp;gt;cache_records= (thd-&amp;gt;variables.read_rnd_buff_size /&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (info-&amp;gt;reclength+info-&amp;gt;struct_length));&lt;br /&gt;&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-3188820909545909197?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/3188820909545909197/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/12/fine-tuning-readrndbuffersize-and.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/3188820909545909197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/3188820909545909197'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/12/fine-tuning-readrndbuffersize-and.html' title='Fine tuning read_rnd_buffer_size and read_buffer_size'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-2434250129215423028</id><published>2011-12-19T14:45:00.000-08:00</published><updated>2012-01-09T02:37:30.541-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SUM'/><title type='text'>SUM for the 5 best models in 5 best brands</title><content type='html'>As we can see in the solution: &lt;br /&gt;&lt;br /&gt;Expression are evaluated in the column order in the select clause.&lt;br /&gt;&lt;br /&gt;This is the same for the where clause.&amp;nbsp; An advice is to test first the expression that get more chance to return false at the head of the where conditions :&amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;style type="text/css"&gt; &lt;/style&gt;&lt;br /&gt;&lt;style type="text/css"&gt;/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */.mysql .de1, .mysql .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}.mysql  {font-family:monospace;}.mysql .imp {font-weight: bold; color: red;}.mysql li, .mysql .li1 {background: #ffffff;}.mysql .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}.mysql .li2 {background: #f8f8f8;}.mysql .kw1 {color: #990099; font-weight: bold;}.mysql .kw2 {color: #990099; font-weight: bold;}.mysql .kw3 {color: #9900FF; font-weight: bold;}.mysql .kw4 {color: #999900; font-weight: bold;}.mysql .kw5 {color: #999900; font-weight: bold;}.mysql .kw6 {color: #FF9900; font-weight: bold;}.mysql .kw7 {color: #FF9900; font-weight: bold;}.mysql .kw8 {color: #9900FF; font-weight: bold;}.mysql .kw9 {color: #9900FF; font-weight: bold;}.mysql .kw10 {color: #CC0099; font-weight: bold;}.mysql .kw11 {color: #CC0099; font-weight: bold;}.mysql .kw12 {color: #009900;}.mysql .kw13 {color: #000099;}.mysql .kw14 {color: #000099;}.mysql .kw15 {color: #000099;}.mysql .kw16 {color: #000099;}.mysql .kw17 {color: #000099;}.mysql .kw18 {color: #000099;}.mysql .kw19 {color: #000099;}.mysql .kw20 {color: #000099;}.mysql .kw21 {color: #000099;}.mysql .kw22 {color: #000099;}.mysql .kw23 {color: #000099;}.mysql .kw24 {color: #000099;}.mysql .kw25 {color: #000099;}.mysql .kw26 {color: #000099;}.mysql .kw27 {color: #00CC00;}.mysql .coMULTI {color: #808000; font-style: italic;}.mysql .co1 {color: #808080; font-style: italic;}.mysql .co2 {color: #808080; font-style: italic;}.mysql .es0 {color: #004000; font-weight: bold;}.mysql .es1 {color: #008080; font-weight: bold;}.mysql .br0 {color: #FF00FF;}.mysql .sy1 {color: #CC0099;}.mysql .sy2 {color: #000033;}.mysql .st0 {color: #008000;}.mysql .nu0 {color: #008080;}.mysql span.xtra { display:block; }&lt;/style&gt;&lt;br /&gt;&lt;div class="mysql"&gt;&lt;ol&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;SET @BRAND=0;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;SET @ct=0;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw1"&gt;SELECT&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;span class="sy1"&gt;*&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw1"&gt;FROM&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw1"&gt;SELECT&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="kw12"&gt;IF&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;@BRAND&lt;span class="sy1"&gt;&amp;lt;&amp;gt;&lt;/span&gt;id_BRAND&lt;span class="sy2"&gt;,&lt;/span&gt;@ct&lt;span class="sy1"&gt;:=&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt; &lt;span class="sy2"&gt;,&lt;/span&gt;@ct&lt;span class="sy1"&gt;:=&lt;/span&gt;@ct &lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="sy2"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&amp;nbsp; @ct&lt;span class="sy1" style="color: black;"&gt;:=&lt;/span&gt;@ct&lt;span style="color: black;"&gt;&lt;span class="sy1"&gt;+&lt;/span&gt;&lt;span class="nu0"&gt;1&lt;/span&gt; &lt;span class="kw1"&gt;AS&lt;/span&gt; ct&lt;span class="sy2"&gt;,&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;@BRAND&lt;span class="sy1"&gt;:=&lt;/span&gt;id_BRAND&lt;span class="sy2"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp;t2.&lt;span class="sy1"&gt;*&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &lt;span class="kw1"&gt;FROM&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw1"&gt;SELECT&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st.ID_BRAND&lt;span class="sy2"&gt;,&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st.ID_MODEL&lt;span class="sy2"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="kw22"&gt;SUM&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;COMPTE&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="kw1"&gt;AS&lt;/span&gt; total&lt;span class="sy2"&gt;,&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="kw22"&gt;AVG&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;totalm&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;FROM&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;STAT st &lt;span class="kw1"&gt;JOIN&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw1"&gt;SELECT&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID_BRAND&lt;span class="sy2"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="kw22"&gt;SUM&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;COMPTE&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="kw1"&gt;AS&lt;/span&gt; totalm&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;FROM&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;STAT&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;GROUP BY&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID_BRAND&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;ORDER BY&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;totalm &lt;span class="kw1"&gt;DESC&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;LIMIT&lt;/span&gt; &lt;span class="nu0"&gt;5&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="kw1"&gt;as&lt;/span&gt; t &lt;span class="kw1"&gt;USING&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; ID_BRAND&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;GROUP BY&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st.ID_BRAND&lt;span class="sy2"&gt;,&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st.ID_MODEL&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;ORDER BY&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st.ID_BRAND&lt;span class="sy2"&gt;,&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;total &lt;span class="kw1"&gt;DESC&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="kw1"&gt;AS&lt;/span&gt; t2 &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="kw1"&gt;AS&lt;/span&gt; t3 &lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="kw1"&gt;WHERE&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;ct &lt;span class="sy1"&gt;&amp;lt;=&lt;/span&gt;&lt;span class="nu0"&gt;5&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-2434250129215423028?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/2434250129215423028/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/12/sum-for-5-best-models-in-5-best-brands.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/2434250129215423028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/2434250129215423028'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/12/sum-for-5-best-models-in-5-best-brands.html' title='SUM for the 5 best models in 5 best brands'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-6417686541303158387</id><published>2011-12-15T04:01:00.000-08:00</published><updated>2011-12-22T04:01:32.358-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='derived_merge'/><category scheme='http://www.blogger.com/atom/ns#' term='MariaDB'/><category scheme='http://www.blogger.com/atom/ns#' term='Disk Temporary Tables'/><category scheme='http://www.blogger.com/atom/ns#' term='optimizer_switch'/><title type='text'>Back on disk temporary tables</title><content type='html'>We already blog a lot on temporary tables on disk, how this could be bad for your workload and should be avoid.&amp;nbsp; Each temporary table will open a file descriptor,&amp;nbsp; external kernel call and by nature a well know file system slow operation. &lt;br /&gt;&lt;br /&gt;We can point this benchmark simulating a working mail server &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.linuxinsight.com/files/images/ext4_postmark.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.linuxinsight.com/files/images/ext4_postmark.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Monitoring of such queries can be trace via the status of&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;created_tmp_disk_tables&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Evidence of what is happening watching many Aria or MyISAM tables created on disk :&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3;"&gt;&lt;span id="internal-source-marker_0.26102331832119685" style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;/usr/sbin/lsof &amp;nbsp;| grep "mysql" | grep "#"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;mysqld &amp;nbsp;&amp;nbsp;&amp;nbsp; 1855 &amp;nbsp;&amp;nbsp;&amp;nbsp; mysql 1658u &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REG &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8,1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192&amp;nbsp;&amp;nbsp;&amp;nbsp; 1505932 /tmp/#sql_73f_1.MAI&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;mysqld &amp;nbsp;&amp;nbsp;&amp;nbsp; 1855 &amp;nbsp;&amp;nbsp;&amp;nbsp; mysql 1659u &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REG &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8,1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192&amp;nbsp;&amp;nbsp;&amp;nbsp; 1505936 /tmp/#sql_73f_1.MAD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;/usr/sbin/lsof &amp;nbsp;| grep "mysql" | grep "#"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;mysqld &amp;nbsp;&amp;nbsp;&amp;nbsp; 1855 &amp;nbsp;&amp;nbsp;&amp;nbsp; mysql 1650u &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REG &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8,1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192&amp;nbsp;&amp;nbsp;&amp;nbsp; 1505946 /tmp/#sql_73f_1.MAI&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;mysqld &amp;nbsp;&amp;nbsp;&amp;nbsp; 1855 &amp;nbsp;&amp;nbsp;&amp;nbsp; mysql 1654u &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REG &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8,1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192&amp;nbsp;&amp;nbsp;&amp;nbsp; 1505951 /tmp/#sql_73f_1.MAD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Now in MariaDB and Percona Server you can found which queries&amp;nbsp; causing you trouble with the slow query log &lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;set global log_slow_verbosity=2;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;And you can retieve this information in the slow log :&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# User@Host: root[root] @ localhost []&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# Thread_id: 93&amp;nbsp; Schema: test&amp;nbsp; QC_hit: No&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# Query_time: 0.00157&amp;nbsp; Lock_time: 0.000034&amp;nbsp; Rows_sent: 4&amp;nbsp; Rows_examined: 12&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# Full_scan: No&amp;nbsp; Full_join: No&amp;nbsp; Tmp_table: Yes&amp;nbsp;&lt;span style="background-color: yellow;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Tmp_table_on_disk: Yes&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# Filesort: Yes&amp;nbsp; Filesort_on_disk: No&amp;nbsp; Merge_passes: 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;SET timestamp=1323937380;&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;select * from (select user_id,created,&amp;nbsp; (select user_email from&amp;nbsp; login2 b where b.user_id=a.user_id ) from login2 a where a.user_id IN (100005, 100002, 100004, 100003)) as a order by created;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Solutions to fixe the issue can be : &lt;br /&gt;&lt;ul&gt;&lt;li&gt;Add an index to cover the resultset order&amp;nbsp; &lt;/li&gt;&lt;li&gt;Increasing tmp_table_size&amp;nbsp;&lt;/li&gt;&lt;li&gt;Increasing max_heap_table_size&amp;nbsp;&lt;/li&gt;&lt;li&gt;Removing blobs from your queries if you need to sort them in memory&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;But somtimes this is not enouth let's have a deeper look :&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;select  * from (&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; select&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; &amp;nbsp; user_id,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select user_email from&amp;nbsp; login2 b  where b.user_id=a.user_id ) as mail&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; from&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; login2 a&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; where&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.user_id IN (100005,  100002, 100004, 100003)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;) as a order by created;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;+---------+---------------------+---------------------+&lt;br /&gt;| user_id | created&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | mail&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;+---------+---------------------+---------------------+&lt;br /&gt;|&amp;nbsp; 100002 | 2011-01-11 17:16:45 | stephane@skysql.com |&lt;br /&gt;|&amp;nbsp; 100003 | 2011-01-11 17:16:45 | stephane@skysql.com |&lt;br /&gt;|&amp;nbsp; 100004 | 2011-01-11 17:16:46 | stephane@skysql.com |&lt;br /&gt;|&amp;nbsp; 100005 | 2011-01-11 17:16:46 | stephane@skysql.com |&lt;br /&gt;+---------+---------------------+---------------------+&lt;/span&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And inside the table :&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;CREATE TABLE `login2` (&lt;br /&gt;&amp;nbsp; `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,&lt;br /&gt;&amp;nbsp; `user_name` varchar(50) DEFAULT NULL,&lt;br /&gt;&amp;nbsp; `user_email` varchar(2000) CHARACTER SET utf8 DEFAULT NULL,&lt;br /&gt;&amp;nbsp; `created` datetime DEFAULT NULL,&lt;br /&gt;&amp;nbsp; PRIMARY KEY (`user_id`)&lt;br /&gt;) ENGINE=InnoDB AUTO_INCREMENT=102048 DEFAULT CHARSET=latin1;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;What you can note here is :&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3;"&gt;&lt;span style="font-size: x-small;"&gt;`user_email` varchar(2000) CHARACTER SET utf8 DEFAULT NULL&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;That mail column is embeded in the derivated query and sorted later on the upper query &lt;br /&gt;&lt;br /&gt;Well for Mounty it tooks few secondes to point me that this is comming from a performance mechanism hardcoded in a constant of the source code&lt;br /&gt;&lt;br /&gt;CONVERT_IF_BIGGER_TO_BLOB&lt;br /&gt;&lt;br /&gt;This set to 512B and the reason is that in most case sorting would be less performant starting in memory and then converted to disk later. &amp;nbsp; &lt;br /&gt;&lt;br /&gt;It is use like this :&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;sql/item.cc:&amp;nbsp; If max_length &amp;gt; CONVERT_IF_BIGGER_TO_BLOB create a blob @n&lt;br /&gt;sql/item.cc:&amp;nbsp; if (max_length/&lt;span style="background-color: yellow;"&gt;collation.collation-&amp;gt;mbmaxlen&lt;/span&gt; &amp;gt; CONVERT_IF_BIGGER_TO_BLOB)&lt;br /&gt;sql/item.cc:&amp;nbsp;&amp;nbsp;&amp;nbsp; if (fixed_length &amp;amp;&amp;amp; max_length &amp;lt; CONVERT_IF_BIGGER_TO_BLOB)&lt;br /&gt;sql/item_sum.h:&amp;nbsp;&amp;nbsp;&amp;nbsp; if (max_length/collation.collation-&amp;gt;mbmaxlen &amp;gt; CONVERT_IF_BIGGER_TO_BLOB )&lt;br /&gt;sql/sql_select.cc:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((*tmp-&amp;gt;item)-&amp;gt;max_length &amp;gt;= CONVERT_IF_BIGGER_TO_BLOB)&lt;br /&gt;sql/unireg.h:#define CONVERT_IF_BIGGER_TO_BLOB 512&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;So the max lenght of varchar for not&amp;nbsp; touching this case would be&amp;nbsp; 512&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Alter table login2&amp;nbsp; modify column&amp;nbsp; user_email varchar(512) charset utf8;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #f3f3f3;"&gt;# Full_scan: Yes&amp;nbsp; Full_join: No&amp;nbsp; Tmp_table: Yes&amp;nbsp; Tmp_table_on_disk: No&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Alter table login2&amp;nbsp; modify column&amp;nbsp; user_email varchar(513) charset utf8;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;&lt;span style="background-color: #f3f3f3;"&gt;# Full_scan: Yes&amp;nbsp; Full_join: No&amp;nbsp; Tmp_table: Yes&amp;nbsp; Tmp_table_on_disk: Yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you have a solution to fixe this in MariaDB 5.3 with the work done on the optimizer :&lt;br /&gt;&lt;br /&gt;just set :&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;set global optimizer_switch='derived_merge=on'&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #f3f3f3;"&gt;# Full_scan: Yes&amp;nbsp; Full_join: No&amp;nbsp; Tmp_table: Yes&amp;nbsp; Tmp_table_on_disk: No &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Kudo to Sergei Petrunia but wait this is not all&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;derived_merge=off&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;mysqlslap --create-schema=test -q testPV2.sql -c2 --number-of-queries=100000 -uroot -ptoto &lt;br /&gt;Benchmark&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Average number of seconds to run all queries: 137.111 seconds&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Minimum number of seconds to run all queries: 137.111 seconds&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maximum number of seconds to run all queries: &lt;span style="background-color: yellow;"&gt;137.111 seconds&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number of clients running queries: 2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Average number of queries per client: 50000&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;derived_merge=on&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;mysqlslap --create-schema=test -q testPV2.sql -c2 --number-of-queries=100000 -uroot -ptoto &lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Benchmark&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Average number of seconds to run all queries: 14.540 seconds&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Minimum number of seconds to run all queries: 14.540 seconds&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maximum number of seconds to run all queries: &lt;span style="background-color: yellow;"&gt;14.540 seconds&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number of clients running queries: 2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Average number of queries per client: 50000&lt;/span&gt;&lt;/div&gt;&amp;nbsp;More the is a bonus here optimizer take less cpu cycles compare to Vanilla MySQL Oracle tm&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;+----------------------+----------+----------+-----------+&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;| c2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | ma&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | my&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | diff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;+----------------------+----------+----------+-----------+&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; cleaning up&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000004 | 0.000004 |&amp;nbsp; 0.000000 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; closing tables&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000008 | 0.000028 | -0.000020 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; executing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000034 | 0.000036 | -0.000002 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; freeing items&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000030 | 0.000030 |&amp;nbsp; 0.000000 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; init&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000118 | 0.000019 |&amp;nbsp; 0.000099 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; logging slow query&amp;nbsp; | 0.000003 | 0.000003 |&amp;nbsp; 0.000000 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; Opening tables&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000049 | 0.000154 | -0.000105 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; optimizing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000061 | 0.000042 |&amp;nbsp; 0.000019 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; preparing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000085 | 0.000050 |&amp;nbsp; 0.000035 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; query end&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000003 | 0.000005 | -0.000002 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; removing tmp table&amp;nbsp; | 0.000081 | 0.000058 |&amp;nbsp; 0.000023 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; Sending data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000681 | 0.000609 |&amp;nbsp; 0.000072 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; Sorting result&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000264 | 0.000031 |&amp;nbsp; 0.000233 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; starting&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000165 | 0.000148 |&amp;nbsp; 0.000017 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; statistics&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000365 | 0.000794 | -0.000429 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; System lock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000014 | 0.000008 |&amp;nbsp; 0.000006 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;|&amp;nbsp; Table lock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0.000015 | 0.000308 | -0.000293 |&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;+----------------------+----------+----------+-----------+&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-6417686541303158387?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/6417686541303158387/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/12/back-on-disk-temporary-tables.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/6417686541303158387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/6417686541303158387'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/12/back-on-disk-temporary-tables.html' title='Back on disk temporary tables'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-1751606350110009030</id><published>2011-11-18T13:00:00.000-08:00</published><updated>2011-12-22T04:02:31.312-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TokuDB'/><title type='text'>Alter table engine TokuDB</title><content type='html'>&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;At the &lt;a href="http://www.lemug.fr/"&gt;le MUG&lt;/a&gt; some questions raised on TokuDB, i hope this post will answer more in deph details &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none;"&gt;InnoDB  like any other general purpose RDBMS can be really bad for online  back-office with big tables, despite following some usual practice and  OLTP normalize schema. &lt;/span&gt;&lt;br /&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none;"&gt;Having indexes in memory &lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none;"&gt;Touching a minimum set of rows for secondary index scan &lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none;"&gt;Scanning some range in primary key order &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;This happen frequently when &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial,Helvetica,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;The working dataset is growing 2 to 100 times the size of the hardware memory&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial,Helvetica,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Joining big tables jumping from secondary indexes to clustered table &lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial,Helvetica,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Increase concurrency on a big tables with range scan starting from a random point in the PRIMARY KEY &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It can be highlight watching random IO disks until 100% disk usage&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;iostat –xm 2&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Device: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rrqm/s &amp;nbsp;&amp;nbsp;wrqm/s &amp;nbsp;&amp;nbsp;&amp;nbsp; r/s &amp;nbsp;&amp;nbsp;&amp;nbsp; w/s&amp;nbsp;&amp;nbsp;&amp;nbsp; rMB/s&amp;nbsp;&amp;nbsp;&amp;nbsp; wMB/s avgrq-sz avgqu-sz &amp;nbsp;&amp;nbsp;await &amp;nbsp;svctm &amp;nbsp;%util&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;sdb &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;305.00 &amp;nbsp;101.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 4.68 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.28&amp;nbsp;&amp;nbsp;&amp;nbsp; 25.04 &amp;nbsp;&amp;nbsp;&amp;nbsp; 1.01&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.48 &amp;nbsp;&amp;nbsp;2.41 &amp;nbsp;97.65&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;sdb &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;285.50 &amp;nbsp;110.50 &amp;nbsp;&amp;nbsp;&amp;nbsp; 4.37 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.34&amp;nbsp;&amp;nbsp;&amp;nbsp; 24.36 &amp;nbsp;&amp;nbsp;&amp;nbsp; 1.02&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.59 &amp;nbsp;&amp;nbsp;2.47 &amp;nbsp;98.00&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;sdb &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;361.50 &amp;nbsp;158.50 &amp;nbsp;&amp;nbsp;&amp;nbsp; 5.59 &amp;nbsp;&amp;nbsp;&amp;nbsp; 2.73&amp;nbsp;&amp;nbsp;&amp;nbsp; 32.76 &amp;nbsp;&amp;nbsp;&amp;nbsp; 1.18&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.27 &amp;nbsp;&amp;nbsp;1.87 &amp;nbsp;97.00&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;iostat&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Device: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tps &amp;nbsp;&amp;nbsp;Blk_read/s &amp;nbsp;&amp;nbsp;Blk_wrtn/s &amp;nbsp;&amp;nbsp;Blk_read &amp;nbsp;&amp;nbsp;Blk_wrtn&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;sdb &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1215.50 &amp;nbsp;&amp;nbsp;&amp;nbsp; 37040.00 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 335.00 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74080 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 670&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Today  we force protection of the InnoDB buffer pool by setting all range  query with a minimum constant date of today interval minus 2 month on  most queries but it is not always possible and limit features &lt;/span&gt;&lt;br /&gt;&lt;h2 dir="ltr"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="font-size: small;"&gt;Benchmark&lt;/span&gt; &lt;/span&gt;&lt;/h2&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;IBM 5030 M3 16 Nehalem cores 32G RAM XFS RAID10 4 SAS 15Ktpm &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Schema extraction for the bench :&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;col width="219"&gt;&lt;/col&gt;&lt;col width="97"&gt;&lt;/col&gt;&lt;col width="86"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;InnoDB&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;TokuDB&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Total Tablespace size&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;249G&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;155G&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Index size&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;31G&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;192G&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Buffer pool &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;24G&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;14G&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Every primary key are composed of a timestamp and a bigint UUID &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;h3 dir="ltr"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;Multiple big tables, many rows and big avg record size &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB&amp;gt; select table_name, table_rows/1000000 from information_schema.tables order by table_rows desc limit 20;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;+--------------------+--------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| table_name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|Millon rows &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;+--------------------+--------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; |&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 52.8748 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 44.5123 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx3l &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 31.6692 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 30.0430 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB&amp;gt; select table_name,avg_row_length from information_schema.tables where table_name&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;in('xxx1','xxx2','xxx3l','xxx4');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;+-------------+----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| table_name &amp;nbsp;| avg_row_length |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;+-------------+----------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;237 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx3l &amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;610 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx4&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;87 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;248 |&lt;/span&gt;&lt;br /&gt;&lt;h3 dir="ltr"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;Index and data usage for the slow queries &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Let’s run a test of 100 queries and see what is happening inside the storage &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB&amp;gt; show table_statistics;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| Table_name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Rows_read |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 750284|&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;3118583 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB&amp;gt; show index_statistics;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;|Table_name &amp;nbsp;&amp;nbsp;&amp;nbsp; | Index_name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Rows_read &amp;nbsp;&amp;nbsp;|&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | apnum_idx &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;64 475 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | trsitemachdateheure_idx &amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;3 023 319 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | apdatesitemach_idx &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; &amp;nbsp;&amp;nbsp; 456 567 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | PRIMARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;93 381 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;| xxx2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | PRIMARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 228 113 |&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;From here we now estimate for &amp;nbsp;every 100 eavy queries we touch &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;500M of row data &lt;/span&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;((750284*237) +(3118583*87))/1024/1024&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;47M of row index &lt;/span&gt;&lt;span style="background-color: #efefef; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;((64475+3023319+456567)*12+(93381+228113)*22)/1024/1024&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;90% secondary indexes key read in xxx1, a 21GB table and 100G in production&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;10% secondary indexes key read &amp;nbsp;xxx2 a 22GB table size and 100G in production&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; We estimate 50% of the data in memory on the bench (44G out 24G) &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; We estimate 10% of the data in memory on the production &amp;nbsp;(200G out 24G) &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h2 dir="ltr"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 24px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;BENCHMARK &lt;/span&gt;&lt;/h2&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;We  collect 1000 queries in the slow query log running beetween 10s to 30s  inside InnoDB and replace the interval 2 month with 9 month.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;col width="173"&gt;&lt;/col&gt;&lt;col width="212"&gt;&lt;/col&gt;&lt;col width="228"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #6fa8dc; border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;InnoDB key read /s&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #6fa8dc; border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;TokuDB key read /s&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Full &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;memory &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;workload 100 slow queries concurrency 1 &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Flat status &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1M&amp;lt;handler_read_nxt&amp;lt;1,2M &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;12s : 10 tps&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Flat status &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1M&amp;lt;handler_read_nxt&amp;lt;1,2M&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;9s : 10 tps&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Full memory workload 100 slow queries concurrency 4 &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Flat status &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1M&amp;lt;handler_read_nxt&amp;lt;3M &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;4s : 40 tps &lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Negative scalability&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;400K&amp;lt;handler_read_nxt&amp;lt;1M&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;14s : 7,4 tps&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;50% memory workload &amp;nbsp;1000 slow queries&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;concurrency 1 &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Eratic status&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1K &amp;lt;handler_read_nxt&amp;lt;2M&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;3730s : 0,26 tps &lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Flat status&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;200K&amp;lt;handler_read_nxt&amp;lt;400K &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;854s : 1,2 tps&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 151px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;10% memory workload 1000 slow queries &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;concurrency 1 &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;buffer_pool 5G &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;still waiting &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Flat status&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;150K&amp;lt;handler_read_nxt&amp;lt;280K &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1262s : 0,8 tps&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;col width="179"&gt;&lt;/col&gt;&lt;col width="105"&gt;&lt;/col&gt;&lt;col width="104"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #9fc5e8; border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Query time in second&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #9fc5e8; border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;InnoDB&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #9fc5e8; border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;TokuDB&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q1&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;9,05&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,22&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q2&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;17,56&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,3&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q3&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;5,95&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,29&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q4&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;19&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,29&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q5&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,24&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,01&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q6&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;9,7&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,09&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Q7&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;2,01&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted #aaa; padding: 7px 7px 7px 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;0,23&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;InnoDB  stay the reference for in memory concurency workload and this was  expected as TokuDB is the challenger, but now we can already state that  for any IO bound workload it will make your day.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;There are many way to fixe those bad queries (de normalisation project) but nothing is more simple then the alter table engine=TokuDB on a slave and don't forget to alter&amp;nbsp; secondary indexes using clustered index syntax .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-1751606350110009030?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/1751606350110009030/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/11/alter-table-engine-tokudb.html#comment-form' title='3 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/1751606350110009030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/1751606350110009030'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/11/alter-table-engine-tokudb.html' title='Alter table engine TokuDB'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-897936488017004417</id><published>2011-05-09T15:30:00.000-07:00</published><updated>2011-12-22T05:38:12.640-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stability'/><category scheme='http://www.blogger.com/atom/ns#' term='MariaDB'/><title type='text'>Install and forget a story of stability...</title><content type='html'>Are you rebooting your MySQL server at night?&lt;br /&gt;&lt;br /&gt;I'de like to share input send to me by a leading MySQL provider, mostly deploying ecommerce and telco applications on Linux.&lt;br /&gt;&lt;br /&gt;One instance is up since 1414 days not bad ....&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;div style="background-color: #f3f3f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: xx-small;"&gt;18:13:02 up 355 days,&amp;nbsp; 4:50,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:03 up 594 days,&amp;nbsp; 5:04,&amp;nbsp; 0 users,&amp;nbsp; load average: 1.20, 1.25, 1.26&lt;br /&gt;18:13:03 up 48 days, 22:10,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.48, 0.38, 0.29&lt;br /&gt;18:13:03 up 936 days,&amp;nbsp; 7:50,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:03 up 173 days,&amp;nbsp; 2:39,&amp;nbsp; 0 users,&amp;nbsp; load average: 1.90, 1.79, 1.79&lt;br /&gt;18:13:04 up 244 days,&amp;nbsp; 3:25,&amp;nbsp; 0 users,&amp;nbsp; load average: 3.96, 3.66, 3.90&lt;br /&gt;18:13:04 up 643 days, 15:50,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.09, 0.08, 0.07&lt;br /&gt;18:13:04 up 642 days,&amp;nbsp; 5:15,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.06, 0.02, 0.00&lt;br /&gt;18:13:05 up 311 days,&amp;nbsp; 1:57,&amp;nbsp; 1 user,&amp;nbsp; load average: 0.01, 0.03, 0.00&lt;br /&gt;18:13:05 up 329 days,&amp;nbsp; 4:43,&amp;nbsp; 0 users,&amp;nbsp; load average: 1.07, 0.55, 0.34&lt;br /&gt;18:13:05 up 95 days, 11:34,&amp;nbsp; 0 users,&amp;nbsp; load average: 2.27, 1.74, 1.64&lt;br /&gt;18:13:06 up 436 days, 23:42,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.09, 0.10, 0.13&lt;br /&gt;18:13:06 up 188 days,&amp;nbsp; 2:35,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.10, 0.19, 0.14&lt;br /&gt;18:13:12 up 347 days, 12:57,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.08, 0.16, 0.22&lt;br /&gt;18:13:12 up 81 days, 11:32,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.04, 0.19, 0.28&lt;br /&gt;18:13:12 up 81 days, 11:24,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.33, 0.40, 0.43&lt;br /&gt;18:13:12 up 81 days, 11:13,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.28, 0.35, 0.36&lt;br /&gt;18:07:39 up 21 days,&amp;nbsp; 6:40,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.12, 0.14, 0.10&lt;br /&gt;18:13:13 up 643 days, 16:11,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.36, 0.19, 0.11&lt;br /&gt;18:13:13 up 643 days, 16:10,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.09, 0.07, 0.02&lt;br /&gt;18:13:13 up 139 days, 35 min,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.38, 0.35, 0.29&lt;br /&gt;18:13:14 up 179 days, 11:41,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.12, 0.07, 0.01&lt;br /&gt;18:13:14 up 634 days,&amp;nbsp; 4:40,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:14 up 343 days,&amp;nbsp; 3:33,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.02, 0.05, 0.00&lt;br /&gt;18:13:14 up 441 days,&amp;nbsp; 2:37,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.13, 0.31, 0.31&lt;br /&gt;18:13:19 up 160 days,&amp;nbsp; 8:19,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.05, 0.01&lt;br /&gt;18:13:20 up 83 days, 22:34,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.07, 0.10, 0.09&lt;br /&gt;18:13:25 up 602 days,&amp;nbsp; 1:50,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.03, 0.00&lt;br /&gt;18:13:25 up 1414 days,&amp;nbsp; 6:07,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.03, 0.00&lt;br /&gt;18:13:26 up 7 days,&amp;nbsp; 6:32,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.11, 0.17, 0.20&lt;br /&gt;18:13:26 up 17 days,&amp;nbsp; 2:38,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.61, 0.49, 0.40&lt;br /&gt;18:13:26 up 17 days,&amp;nbsp; 2:42,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.10, 0.31, 0.35&lt;br /&gt;18:13:32 up 284 days,&amp;nbsp; 5:03,&amp;nbsp; 0 users,&amp;nbsp; load average: 1.12, 0.78, 0.67&lt;br /&gt;18:13:32 up 599 days, 40 min,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:32 up 320 days,&amp;nbsp; 7:44,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.06, 0.07, 0.02&lt;br /&gt;18:13:33 up 28 days,&amp;nbsp; 7:00,&amp;nbsp; 3 users,&amp;nbsp; load average: 0.04, 0.05, 0.01&lt;br /&gt;18:13:33 up 12 days,&amp;nbsp; 8:52,&amp;nbsp; 2 users,&amp;nbsp; load average: 0.31, 0.07, 0.02&lt;br /&gt;18:13:33 up 68 days,&amp;nbsp; 8:33,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.02, 0.00&lt;br /&gt;18:13:33 up 265 days,&amp;nbsp; 6:36,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:34 up 515 days,&amp;nbsp; 3:03,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:34 up 97 days, 22:44,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.06, 0.10, 0.09&lt;br /&gt;18:13:34 up 118 days,&amp;nbsp; 3:38,&amp;nbsp; 1 user,&amp;nbsp; load average: 0.02, 0.02, 0.00&lt;br /&gt;18:13:35 up 12 days, 17:07,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.07, 0.04&lt;br /&gt;18:13:35 up 18 days,&amp;nbsp; 1:25,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.39, 0.37, 0.30&lt;br /&gt;18:13:35 up 97 days,&amp;nbsp; 6:02,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.26, 0.31&lt;br /&gt;18:13:36 up 410 days,&amp;nbsp; 7:48,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:36 up 538 days, 11:38,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.01, 0.00&lt;br /&gt;18:13:36 up 207 days,&amp;nbsp; 6:56,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.49, 0.52, 0.54&lt;br /&gt;18:13:37 up 332 days,&amp;nbsp; 8:49,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.02, 0.00&lt;br /&gt;18:13:37 up 263 days,&amp;nbsp; 3:25,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.02, 0.00&lt;br /&gt;18:13:38 up 469 days, 23:05,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.02, 0.01, 0.00&lt;br /&gt;18:13:38 up 927 days,&amp;nbsp; 2:51,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.01, 0.00&lt;br /&gt;18:13:39 up 350 days, 17:01,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.01, 0.00&lt;br /&gt;18:13:39 up 782 days,&amp;nbsp; 5:27,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:40 up 329 days,&amp;nbsp; 3:50,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:40 up 192 days,&amp;nbsp; 1:28,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.44, 0.36, 0.28&lt;br /&gt;18:13:40 up 203 days,&amp;nbsp; 4:04,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.10, 0.16, 0.11&lt;br /&gt;18:13:41 up 200 days,&amp;nbsp; 3:14,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.07, 0.06, 0.01&lt;br /&gt;18:13:41 up 200 days,&amp;nbsp; 3:14,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.13, 0.14, 0.16&lt;br /&gt;18:13:41 up 200 days,&amp;nbsp; 3:14,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.06, 0.08, 0.08&lt;br /&gt;18:13:42 up 104 days,&amp;nbsp; 6:52,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.02, 0.01, 0.00&lt;br /&gt;18:13:42 up 752 days,&amp;nbsp; 3:37,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:20:04 up 94 days,&amp;nbsp; 5:56,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.06, 0.03, 0.01&lt;br /&gt;18:18:43 up 94 days,&amp;nbsp; 5:54,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:20:40 up 11 days,&amp;nbsp; 7:01,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.04, 0.10, 0.04&lt;br /&gt;18:13:43 up 26 days,&amp;nbsp; 8:50,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.01, 0.00&lt;br /&gt;18:13:43 up 581 days,&amp;nbsp; 8:54,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:43 up 430 days,&amp;nbsp; 2:08,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.06, 0.02&lt;br /&gt;18:13:49 up 215 days,&amp;nbsp; 3:56,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.01, 0.04, 0.10&lt;br /&gt;18:13:49 up 354 days,&amp;nbsp; 4:17,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:49 up 523 days,&amp;nbsp; 2:55,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:50 up 301 days,&amp;nbsp; 2:12,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:50 up 259 days,&amp;nbsp; 9:03,&amp;nbsp; 0 users,&amp;nbsp; load average: 3.93, 4.07, 4.06&lt;br /&gt;18:13:50 up 47 days,&amp;nbsp; 2:46,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:51 up 17 days,&amp;nbsp; 7:42,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:18:10 up 363 days,&amp;nbsp; 4:19,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.13, 0.26, 0.34&lt;br /&gt;18:13:52 up 145 days,&amp;nbsp; 8:33,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.23, 0.17, 0.10&lt;br /&gt;18:13:52 up 581 days,&amp;nbsp; 8:34,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.00, 0.00&lt;br /&gt;18:13:52 up 431 days,&amp;nbsp; 1:41,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.01, 0.00&lt;br /&gt;18:13:54 up 396 days,&amp;nbsp; 2:21,&amp;nbsp; 0 users,&amp;nbsp; load average: 0.00, 0.14, 0.24&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Conclusion : It also takes time to be proved a possible next generation database. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;So let's make a point on the last community work to continue tradition of stability :&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;There have been some effort in that direction in MySQL@Sun-Oracle that goes back to the source code&amp;nbsp; &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;MariaDB and Drizzle today compile with -Werror, which means that any compiler error is a just considered a failure.&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Using buildbot, is a free and community driven build system that anyone can  participate in &lt;a href="http://buildbot.askmonty.org/buildbot/buildslaves"&gt;http://buildbot.askmonty.org/buildbot/buildslaves&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Buildbot is used for all MariaDB pushes, run for major OS, hardware,  distribution including windows the test suite run on valgrind for debug and optimized builds to test all flavor. Number of test raise from 2236 to 2642, number of test lines from 567898 to 656864.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Buildbot is using test suite to stress for hight number of retry for better transient failures detection &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Buildbot include random query generator &lt;a href="https://launchpad.net/%7Erandgen"&gt;https://launchpad.net/~randgen&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Drizzle introduce dbqp for providing a generic automatic multi test framework&amp;nbsp; &lt;a href="http://docs.drizzle.org/testing/dbqp.html"&gt;http://docs.drizzle.org/testing/dbqp.html&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;In that area, competition raising quality , minimizing risks for the users.&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-897936488017004417?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/897936488017004417/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/05/install-and-forget-story-of-stability.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/897936488017004417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/897936488017004417'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/05/install-and-forget-story-of-stability.html' title='Install and forget a story of stability...'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-2949361923639315501</id><published>2011-03-09T09:11:00.000-08:00</published><updated>2011-03-09T09:11:17.327-08:00</updated><title type='text'>Crossing the hills with Web 2.0</title><content type='html'>Paybox the fast growing payment system,&amp;nbsp; ready for new  write scalability challenges, with an up to date open source stack, sharding, asynchronous replication, protobuffer, MariaDB and his new group commit feature, ready to go on fusion IO and XFS if just required.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-z5gCMQj5lbk/TXewYbe63VI/AAAAAAAAABY/00xZ2XVAB5Y/s1600/Fabienne_RAG2010.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="297" src="https://lh3.googleusercontent.com/-z5gCMQj5lbk/TXewYbe63VI/AAAAAAAAABY/00xZ2XVAB5Y/s400/Fabienne_RAG2010.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;HA and write intensive workload are really challenging to married but it can be very fun ! &lt;br /&gt;To follow the team Paybox on the&lt;span style="font-size: small;"&gt; &lt;span style="font-family: comic sans ms,sans-serif;"&gt;&lt;span&gt;&lt;strong&gt;"Rallye des Gazelles 2011&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: comic sans ms,sans-serif;"&gt;&lt;span&gt;&lt;strong&gt;"&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: comic sans ms,sans-serif;"&gt;&lt;span style="font-size: 18pt;"&gt;&lt;strong&gt;&lt;a href="http://timlaline.over-blog.com/"&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt; http://timlaline.over-blog.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-2949361923639315501?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/2949361923639315501/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/03/crossing-hills-with-web-20.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/2949361923639315501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/2949361923639315501'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/03/crossing-hills-with-web-20.html' title='Crossing the hills with Web 2.0'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-z5gCMQj5lbk/TXewYbe63VI/AAAAAAAAABY/00xZ2XVAB5Y/s72-c/Fabienne_RAG2010.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-1323469162566468777</id><published>2011-01-17T12:35:00.000-08:00</published><updated>2011-12-22T04:05:15.963-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='InfiniDB'/><title type='text'>Muzing on NoSQL, damned ! can't get rid of InifiniDB</title><content type='html'>&lt;span style="font-size: small;"&gt;NoSQL have been frequently used for building analytic solutions. The big picture is using some scalable client code with m&lt;/span&gt;&lt;span style="font-size: small;"&gt;ap reduce to distribute full data scan.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;This approach have nothing new to the RDBMS world and can be considered an extension of the &lt;/span&gt;&lt;span style="font-size: small;"&gt;Kimball ROLAP normalization, just allowing more CPU power on a single query.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;NoSQL or sharding take advantages on&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Distributed processing&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: small;"&gt;NoSQL &lt;/span&gt;&lt;span style="font-size: small;"&gt;or sharding are &lt;/span&gt;&lt;span style="font-size: small;"&gt;loosing advantages such&lt;/span&gt;&lt;span style="font-size: small;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Fast memory communication&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Per column data type &lt;/span&gt;&lt;span style="font-size: small;"&gt;optimization and deserialization cost &lt;/span&gt;&lt;span style="font-size: small;"&gt;(NoSQL)&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;C processing when reduced with slower language (NoSQL) &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: small;"&gt;There is more non technical advantages in classic ROLAP normalization like using same well known OLTP &lt;/span&gt;&lt;span style="font-size: small;"&gt;tools&lt;/span&gt;&lt;span style="font-size: small;"&gt; and &lt;/span&gt;&lt;span style="font-size: small;"&gt;bug free &lt;/span&gt;&lt;span style="font-size: small;"&gt;storage engine, all coming with &lt;/span&gt;&lt;span style="font-size: small;"&gt;GPL licences for reducing the ownership cost&lt;/span&gt;&lt;span style="font-size: small;"&gt;. In many, many case it will allow building analytic solutions with acceptable response time. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Our existing tools in My SQL using vertical scalability contains &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;MyISAM for minimizing query latency&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;MyISAM read only pack table for sparing space and io&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Deprecated merge table for partitioning&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Native partitioning&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;InnoDB transparent bzip compression&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;InnoDB read ahead , and multiple io threads&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Tokutek storage engine with predictable response time on table sizing&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;On the same front MariaDB is cutting the gap with the best commercial RDBMS, introducing new algorithms based on query plan optimization&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Table elimination (MariaDB 5.1)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Batched Key Access (MariaDB 5.3)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Join buffering with outer joins&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Index Condition Pushdown&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Subquery optimizations (MariaDB 5.3)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;NULL-aware materialization&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Materialization-scan for grouping queries&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Predicate caching&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;FROM subquery optimizations&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;ROLAP, despite being the most common approach, is facing some well know limitations that&lt;/span&gt;&lt;span style="font-size: small;"&gt; OLAP or NoSQL try to balance.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Single query is bound to a single server, and for My SQL single core. It is good enough in most case for a marketing or management requirements putting limited load on the analytic solution and asking data with some predefine time delay.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Putting technical team in front of the write vs read challenge, adding more indexes will speed some queries but doubtfully can cover all queries and will slow down writes and DDL.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Over time the schema is more and more linked with specific requirements, bringing aggregates and datamarts and forcing to maintain bunch of ETL &lt;/span&gt;&lt;span style="font-size: small;"&gt; assynchronus &lt;/span&gt;&lt;span style="font-size: small;"&gt;code.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: small;"&gt;NoSQL defenders tend to clams this is not acceptable? Analytic systems today are moving online and could populate events at the rate of the number of Internet sessions, clicks or network packets. This is just true, but is NoSQL the best solution ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;On the same track to NoSQL,a&lt;/span&gt;&lt;span style="font-size: small;"&gt; toolkit is emerging&lt;/span&gt;&lt;span style="font-size: small;"&gt; in MariaDB and Drizzle,&amp;nbsp; to overcome those limitations&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Column based OLAP storage engine&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;ROLAP sharding solutions with or without transparent map reduce&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;What is the best today? Again there is no rule of thumb but i can share some founding in my day to day job.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;OLAP storage engine InfiniDB, Infobright, LucidDB provide very good results on processing a lot of records, depending on the underlying hardware and type of queries. I tend to give credit to InfiniDB to maximize resources out of a single query and Infobright to provide better response time on limited hardware resources. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span id="internal-source-marker_0.9423011070085234" style="background-color: transparent; color: black; font-family: Arial; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Based on the top 10 queries of an existing client running an online DWH 1 Billion records&lt;/span&gt; on 8 cores hardware &lt;span style="background-color: transparent; color: black; font-family: Arial; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;RAID 5 4*15000tpm SAS, 32G RAM &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span id="internal-source-marker_0.9423011070085234" style="background-color: transparent; color: black; font-family: Arial; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;style&gt;body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Arial"; font-size: x-small; }&lt;/style&gt;    &lt;br /&gt;&lt;table border="0" cellspacing="0" cols="4" frame="VOID" rules="NONE"&gt;&lt;colgroup&gt;&lt;col width="334"&gt;&lt;/col&gt;&lt;col width="146"&gt;&lt;/col&gt;&lt;col width="169"&gt;&lt;/col&gt;&lt;col width="94"&gt;&lt;/col&gt;&lt;/colgroup&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="19" style="border: 1px solid rgb(0, 0, 0);" width="334"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" bgcolor="#ff0000" style="border: 1px solid rgb(0, 0, 0);" width="146"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;InnoDB&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" bgcolor="#ff0000" style="border: 1px solid rgb(0, 0, 0);" width="169"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;InfiniDB&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" bgcolor="#ff0000" style="border: 1px solid rgb(0, 0, 0);" width="94"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;InfoBright&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Avg number of logical records/s on all type of queries&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1 598 682&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="background-color: yellow; border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;12 098 102&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;4 527 652&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Minimum response time / million logical records scan best case on a 128M rows group by &lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;0.6&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="background-color: yellow; border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;0.02&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;0.06&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt;So far so good OLAP is the big winner here ! &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Can NoSQL &lt;/span&gt;&lt;span style="font-size: small;"&gt;come clause to OLAP, at the rate of 500 000 get/s ? It would required 128 servers to come clause to such response time and 12 of them to maintain avg &lt;/span&gt;&lt;span style="font-size: small;"&gt;read &lt;/span&gt;&lt;span style="font-size: small;"&gt;records rate. Hopefully NoSQL can use bulk data transfer covered with distributed SQL layer.&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;On the other side, ROLAP sharding can put more memory  caching on a single query, introducing home made logical partitioning  that can follow the business rules like putting most&amp;nbsp; hot data on a  single node, mixing huge aggregates with small data lookups. &lt;/span&gt;&lt;span style="font-size: small;"&gt;This  approch is already credited with very good results for me on a 20  billion DWH build last year for a fraction of the price of commercial DB&lt;/span&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Can ROLAP come clause to OLAP and how many servers will i need to achieve the same performance ?&amp;nbsp; According to previous specific bench it is 1 to 1 if we can make the all cores work together, but for the same latency it is more 1 to 3 or 4. Can we verify this with micro benchmarking.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Let's abstract a linear parallel processing on &lt;/span&gt;&lt;span style="font-size: small;"&gt; ROLAP &lt;/span&gt;&lt;span style="font-size: small;"&gt;designed with some sharding. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;With Spider storage engine allowing transparent horizontal sharding, we end up splitting the data in per day shards, giving 2M rows fact tables per partition, distributing the shard across multiple MariaDB instances.&amp;nbsp; Spider make&amp;nbsp;it possible to do this and reattach&amp;nbsp;your data just reusing same SQL statements.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Let's now present some micro benchmark that discourage me from the brute force only&amp;nbsp; approach.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Mounting the partitions on a RAMFS, let catch the time for a single 2 Million rows partition scan &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;style&gt;body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Arial"; font-size: x-small; }&lt;/style&gt;    &lt;br /&gt;&lt;table border="0" cellspacing="0" cols="2" frame="VOID" rules="NONE"&gt;&lt;colgroup&gt;&lt;col width="144"&gt;&lt;/col&gt;&lt;col width="94"&gt;&lt;/col&gt;&lt;/colgroup&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="23" style="border: 1px solid rgb(0, 0, 0);" width="144"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;InnoDB&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);" width="94"&gt;&lt;span style="font-size: small;"&gt;1.3&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="23" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Pbxt &lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;0.8&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="23" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;MyISAM Pack &lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1.32&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="23" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;MyISAM &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="background-color: yellow; border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;0.46&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="23" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Aria 32K blocs&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;0.86&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;With linear scalability we&lt;/span&gt;&lt;span style="font-size: small;"&gt; can get 8 cores to perform 32M row scan/s on MyISAM.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Giving our previous query doing &lt;/span&gt;&lt;span style="font-size: small;"&gt;128M row aggregate in 2s in InfiniDB&lt;/span&gt;&lt;span style="font-size: small;"&gt;, result would have run in 4 secondes, 2 times slower comparing with InfiniDB and this is just abstracting network, disk access and any consolidation time for each shard.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;What is the magic behind OLAP, could it be per column sharding ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Our Q10 queries is touching 3 fields out of the 12 in the giving table.This is opening&amp;nbsp; the possibility to divide &lt;/span&gt;&lt;span style="font-size: small;"&gt;full scan&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;time &lt;/span&gt;&lt;span style="font-size: small;"&gt;per 4 with additional 3 times the scan of a primary key and adding 2 times the CPU to join &lt;/span&gt;&lt;span style="font-size: small;"&gt; 2 millions rows&lt;/span&gt;&lt;span style="font-size: small;"&gt;. This operation could possibly be done transparently with the excellent VP storage engine.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Oups, join on 2M records is adding minimum 8 seconds per shard for a full scan. This POC was just a big u turn. Conclusion, sharding per column and brut force is not the solution in most case giving the cost of&amp;nbsp; algorithms to rejoin the multiple peaces.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;style&gt;body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Arial"; font-size: x-small; }&lt;/style&gt;    &lt;br /&gt;&lt;table border="0" cellspacing="0" cols="3" frame="VOID" rules="NONE"&gt;&lt;colgroup&gt;&lt;col width="334"&gt;&lt;/col&gt;&lt;col width="146"&gt;&lt;/col&gt;&lt;col width="169"&gt;&lt;/col&gt;&lt;/colgroup&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;td align="CENTER" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);" width="334"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Fetch 2 INT COLUMNS  2M rows MyISAM&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" bgcolor="#ff0000" style="border: 1px solid rgb(0, 0, 0);" width="146"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Join cache level&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" bgcolor="#ff0000" style="border: 1px solid rgb(0, 0, 0);" width="169"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;Time to scan all records&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;FULL SCAN 8 bytes RECORD SIZE &lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1.07&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;FULL SCAN 108 bytes RECORD SIZE &lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1.87&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;FULL JOIN NESTED LOOP &lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;17.48&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;FULL JOIN BKAH&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;8&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;15.43&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;FULL JOIN BKA &lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" style="background-color: yellow; border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;5&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="background-color: yellow; border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;15.3&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;    &lt;td align="LEFT" bgcolor="#ff0000" height="18" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="color: #163364; font-family: Times New Roman; font-size: small;"&gt;FULL JOIN NESTED LOOP COVERING INDEX&lt;/span&gt;&lt;/td&gt;    &lt;td align="CENTER" style="border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;1&lt;/span&gt;&lt;/td&gt;    &lt;td align="RIGHT" style="background-color: yellow; border: 1px solid rgb(0, 0, 0);"&gt;&lt;span style="font-size: small;"&gt;8.37&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&amp;nbsp;&amp;nbsp; &lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;OLAP engines take clever advantage of metadata per shard and pre aggregate informations it means that any ROLAP sharding or NoSQL solution should also come to the same conclusion in regard to latency, and adding hybrid mechanisms like additional metadata or pre calculated tables that can limit the cost of brute forcing. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Some great idea would be to build a transparent metadata layer,with My SQL proxy or gearman that will inject some pre calculated results per shard, execute asynchronously at insert time. I have no doubt that a map reduce solution for building such &lt;/span&gt;&lt;span style="font-size: small;"&gt;asynchronously&lt;/span&gt;&lt;span style="font-size: small;"&gt; metadata is the way to go for a ROLAP sharding with almost real time statistics.&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;For those already convince, I'd like to point out, a not so known feature of My SQL call&amp;nbsp; &lt;a href="tp://dev.mysql.com/doc/refman/5.0/en/group-by-modifiers.html"&gt;WITH ROLLUP&lt;/a&gt;&amp;nbsp; to help trigger aggregating data.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-1323469162566468777?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/1323469162566468777/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/01/muzing-on-nosql-damned-cant-get-rid-of.html#comment-form' title='6 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/1323469162566468777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/1323469162566468777'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/01/muzing-on-nosql-damned-cant-get-rid-of.html' title='Muzing on NoSQL, damned ! can&apos;t get rid of InifiniDB'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-4910235027055537299</id><published>2011-01-10T04:36:00.000-08:00</published><updated>2011-12-22T04:03:53.341-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MariaDB'/><category scheme='http://www.blogger.com/atom/ns#' term='NoSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Handler'/><title type='text'>20% to 50% improvement in MariaDB 5.3 Handler Interface using prepared statement</title><content type='html'>&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span id="internal-source-marker_0.8729231941068851" style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Following a &lt;a href="http://varokism.blogspot.com/2010/12/using-mysql-as-nosql-story-for_27.html"&gt;previous post&lt;/a&gt; using MySQL as a NoSQL store with the native &lt;a href="http://dev.mysql.com/doc/refman/5.0/fr/handler.html"&gt;Handler Interface&lt;/a&gt;, some&amp;nbsp; refactoring have now been  coded in MariaDB-5.3 as described in the following &lt;a href="http://askmonty.org/worklog/Server-Sprint/index.pl?tid=172"&gt;worklog&lt;/a&gt; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;On concurrency,&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;doing less work in HANDLER READ to put more caching on HANDLER OPEN &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;is credited with a 7% performance gain.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Source code via&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;bzr branch lp:~maria-captains/maria/5.3-handler&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;More, HANDLER READ can now be used with prepared statement to save precious CPU cycles on parsing.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;handler t1 open;&lt;br class="kix-line-break" /&gt;prepare stmt from 'handler t1 read a=(?)';&lt;br class="kix-line-break" /&gt;set @a=1000;&lt;br class="kix-line-break" /&gt;execute stmt using @a;&lt;br class="kix-line-break" /&gt;deallocate prepare stmt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;span style="background-color: yellow; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;On &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;micro benchmark &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;prepared statement show 40% better performance. On concurrency &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;this improvement goes up to 13% better performance&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-size: small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; as demonstrated with a code in C  using client side prepared statement, in regard to mysqlslap also in C but without client side prepared statement.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table style="border-collapse: collapse; border: medium none;"&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: italic; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;Handler Interface on Pached MariaDB 5.3&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: navy; border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;64&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MyISAM/Client side prepared statement/PERL &lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;313425&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MyISAM/mysqlslap &lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;436977&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;PBXT/mysqlslap&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;467880&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;PBXT/client side prepared statement/C client&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;527940&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MyISAM/client side prepared statement/C client&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px dotted rgb(170, 170, 170); padding: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;493855&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;The MariaDB team also investigates some possible contentions on kernel_lock with a new server parameter that disables socket switching to non blocking mode -T8 --disable-thread-alarm, this is having so far no impact on this bench. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Code used during the run :&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;#include &amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;#include &amp;lt;cstdlib&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;#include &amp;lt;cstring&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;#include &amp;lt;cstdio&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;#include "mysql.h"&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;using namespace std;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;int main(int argc, char *argv[])&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;cout &amp;lt;&amp;lt; "start up" &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;MYSQL * connection;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;connection = mysql_init(0);&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;connection = mysql_real_connect(connection, 0, "stephane", "", "test", 0,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"/tmp//mysql.sock", 0);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 == connection)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "connect failed:" &amp;lt;&amp;lt; mysql_error(connection) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;static const char * sql_statement ="HANDLER login READ `PRIMARY`=(?)";&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;MYSQL_STMT * stmt_handle = mysql_stmt_init(connection);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 == stmt_handle)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt init failed:" &amp;lt;&amp;lt; mysql_error(connection) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;int mysql_return_code = mysql_stmt_prepare(stmt_handle,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sql_statement,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;strlen(sql_statement)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; if (0 != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt prepare failed:" &amp;lt;&amp;lt; mysql_stmt_error(stmt_handle) &amp;lt;&amp;lt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;MYSQL_BIND bind_var[1];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;unsigned long var_length[3];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;my_bool not_null = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;int int_data;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;bind_var[0].buffer_type = MYSQL_TYPE_LONG;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;bind_var[0].buffer = (char *) &amp;amp;int_data;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;bind_var[0].length= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;bind_var[0].is_null = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; mysql_return_code = mysql_stmt_bind_param(stmt_handle, bind_var);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt bind failed:" &amp;lt;&amp;lt; mysql_stmt_error(stmt_handle) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;int_data= 1000; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;int user_id;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;char user_name[50] = {'\0'};&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;char user_email[255] = {'\0'};&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MYSQL_TIME created;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MYSQL_BIND result_var[4];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;unsigned long result_var_length[4];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;my_bool is_null[1];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;for (int i=0; i&amp;lt;1000000; ++i) &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;mysql_return_code = mysql_stmt_execute(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt execute failed:" &amp;lt;&amp;lt; mysql_stmt_error(stmt_handle) &amp;lt;&amp;lt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;bzero(result_var, sizeof(result_var));&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[0].buffer_type= MYSQL_TYPE_LONG;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[0].buffer= (char *)&amp;amp;user_id;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[0].is_null= &amp;amp;is_null[0];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[0].length= &amp;amp;result_var_length[0];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[1].buffer_type = MYSQL_TYPE_VAR_STRING;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[1].buffer = (char *)user_name;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[1].buffer_length = sizeof(user_name)-1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[1].is_null = &amp;amp;is_null[1];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[1].length = &amp;amp;result_var_length[1];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[2].buffer_type = MYSQL_TYPE_VAR_STRING;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[2].buffer = (char *)user_email;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[2].buffer_length = sizeof(user_email)-1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[2].is_null = &amp;amp;is_null[2];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[2].length = &amp;amp;result_var_length[2];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[3].buffer_type = MYSQL_TYPE_DATETIME;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[3].buffer = (char *)&amp;amp;created;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[3].is_null = &amp;amp;is_null[3];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;result_var[3].length = &amp;amp;result_var_length[3];&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;mysql_return_code = mysql_stmt_bind_result(stmt_handle, result_var);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt bind rslt failed:" &amp;lt;&amp;lt; mysql_stmt_error(stmt_handle) &amp;lt;&amp;lt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;mysql_return_code = mysql_stmt_store_result(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt store rslt failed:" &amp;lt;&amp;lt; mysql_stmt_error(stmt_handle) &amp;lt;&amp;lt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;mysql_return_code = mysql_stmt_fetch(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (0 != mysql_return_code &amp;amp;&amp;amp; MYSQL_NO_DATA != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cerr &amp;lt;&amp;lt; "stmt fetch failed:" &amp;lt;&amp;lt; mysql_stmt_error(stmt_handle) &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_free_result(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;if (MYSQL_NO_DATA != mysql_return_code)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;// &amp;nbsp;cout &amp;lt;&amp;lt; "stmt - got: " &amp;lt;&amp;lt; user_name &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;} //end for &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;mysql_stmt_free_result(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; mysql_stmt_close(stmt_handle);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; mysql_close(connection);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; mysql_server_end();&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; cout &amp;lt;&amp;lt; "done" &amp;lt;&amp;lt; endl;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-4910235027055537299?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/4910235027055537299/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2011/01/20-to-50-improvement-in-mariadb-53.html#comment-form' title='2 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/4910235027055537299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/4910235027055537299'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2011/01/20-to-50-improvement-in-mariadb-53.html' title='20% to 50% improvement in MariaDB 5.3 Handler Interface using prepared statement'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1465698062117590441.post-3876407813183160789</id><published>2010-12-27T16:30:00.000-08:00</published><updated>2011-12-22T04:04:09.308-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MariaDB'/><category scheme='http://www.blogger.com/atom/ns#' term='NoSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Handler'/><title type='text'>Using MySQL as a NoSQL: a story for exceeding 450000 qps with MariaDB</title><content type='html'>&lt;h3 class="post-title entry-title"&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div class="post-header"&gt;&lt;/div&gt;&lt;span id="internal-source-marker_0.3368653078502877" style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Following the excellent post of &lt;a href="http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html%20"&gt;Yoshinori about exceeding 750 000 qps&lt;/a&gt; with handler_socket,&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;i was curious to make my own opinion on the state of MySQL and MariaDB regarding simple primary key search.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;a href="http://www.blogger.com/goog_760196691"&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Quoting&amp;nbsp; &lt;i&gt;"Most of high scale web applications use MySQL + memcached. Many of them use also NoSQL like TokyoCabinet/Tyrant. In some cases people have dropped MySQL and have shifted to NoSQL. One of the biggest reasons for such a movement is that it is said that NoSQL performs better than MySQL for simple access patterns such as primary key lookups. Most of queries from web applications are simple so this seems like a reasonable decision"&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;I’m a big fan of NoSQL when it comes to remove useless work put on some over loaded SQL box , for solving&amp;nbsp; write scalability issues but i will try to demonstrate that in most case you can push a MySQL and MariaDB server at the same level in vertical scalability compare to NoSQL solution.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;I found&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; some of the benchmarks not always taking into account the best practice of RDBMS usage,&amp;nbsp; no persistante connections &amp;nbsp;(shorten authentification , socket and thread stack allocation), not using prepared statement to cache plans and&amp;nbsp; limit network usage, using bad primary keys like varchar or big numeric data type. &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;As demontrated &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;on InnoDB &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;by handler_socket most of the effect of concurrency locking on the buffer pool and the key buffer are now fixed at the storage engine level. For MyISAM one should use the new&lt;a href="http://kb.askmonty.org/v/segmented-key-cache"&gt; segmented key buffer feature&lt;/a&gt; comming with MariaDB 5.2&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;key_cache_segments=16&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;key_bock_size=32K&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;The big picture behind handler_socket is to shortcut the SQL layer with a plugin that implement a light&amp;nbsp; non blocking IO &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;protocol &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;and a pool of threads accessing directly the storage engine API. One should notice that in theory, the same &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;network &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;implementation&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; is introduced &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;with the new pool of thread released in MariaDB but the scalability over 4 cores for this feature is still a work in progress. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Using hanler_socket, some internal mechanisms can be removed away of normal query execution &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;- CPU usage for parsing and compute query plan.&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;- Mutex protecting memory structures: LOCK_open, LOCK_thread_count&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;- Global kernel mutex hit by the posix threading model&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Fortunatly it exist, some not so popular feature of MySQL that can help removing a lot of the parsing and locking issues called the &lt;a href="http://dev.mysql.com/doc/refman/5.0/fr/handler.html"&gt;Handler Interface&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://dev.mysql.com/doc/refman/5.0/fr/handler.html"&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;With that interface MyISAM and PBXT performance are looking very close to what handler_socket deliver on the two commodity harware used for my testing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Table is &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1 000 000 rows&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;, 44 Bytes avg row size&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;, 40MB index,&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; 320MB data on MyISAM &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;CREATE TABLE test.login (&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;`user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;`user_name` varchar(50) DEFAULT NULL,&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;`user_email` varchar(255) DEFAULT NULL,&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;`created` datetime DEFAULT NULL,&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;PRIMARY KEY (`user_id`)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;) ENGINE=MyISAM AUTO_INCREMENT=100000 DEFAULT CHARSET=latin1;&lt;/span&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Using mysqlslap just init the HANDLER in the configuration file and login with a user not having SUPER priviledges &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;init_connect='use test;HANDLER login OPEN;'&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="internal-source-marker_0.3368653078502877" style="margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;./my sqlslap -ustephane test -p --create-schema=test --query="HANDLER login READ \`PRIMARY\`=(FLOOR(RAND())*1000000)" --concurrency=24 --number-of-queries=10000000&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;The short winner is still handler_socket with at pick of 220 concurrent connections delivering 504 685 qps but MariaDB 5.2 with PBXT and MariaDB 5.3 MyISAM is comming very close with more then 410 000 qps &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;tbody&gt;&lt;tr style="height: 33px;"&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: italic; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;24 cores Intel(R) Xeon(R) CPU X5660 &amp;nbsp;@ 2.80GHz&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: navy; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;16&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: navy; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; text-align: center; vertical-align: top;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;24&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: navy; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;64&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.1 Handler_Socket MyISAM&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;193689&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;184325&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: red; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.1 Handler_Socket InnoDB&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;280000&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;477136&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: #351c75; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MySQL-5.5 Prepare statement InnoDB&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; text-align: center; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: #351c75; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: #351c75; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;31638&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; text-align: center; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: #351c75; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MySQL-5.5 Select Interface InnoDB&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;75732&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;41911&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;28647&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MySQL-5.5 Handler Interface MyISAM &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;180647&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;195192&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MySQL-5.5 Handler Interface InnoDB &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;249495&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;383976&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;349054&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.2 Handler Interface MyISAM&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;285961&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;388537&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;402061&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.2 Handler Interface MyISAM Thread Pool&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;111906&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;77391&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;101005&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: #351c75; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.2 Handler Interface PBXT &lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;317517&lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;419943&lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;436088&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 27px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.2 Handler Interface XtraDB&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;287411&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;394296&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; color: black; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;188557&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.3 Handler Interface MyISAM&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;286331&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;412769&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;413560&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: red; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;MariaDB-5.3 Handler Interface MyISAM Perl&lt;/span&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;289662&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: white; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;289942&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Notice that InnoDB is making 2 handler_read_key for 1 primary key index search, monitoring the load&amp;nbsp; should be taken from the status of Innodb_rows_read&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; text-decoration: none; vertical-align: baseline;"&gt;For the most curious,&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; text-decoration: none; vertical-align: baseline;"&gt; profiling made during that bench on MyISAM, MariaDB 5.2 and MySQL 5.5&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;% &amp;nbsp;&amp;nbsp;cumulative &amp;nbsp;&amp;nbsp;self &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self &amp;nbsp;&amp;nbsp;&amp;nbsp; total &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;time &amp;nbsp;&amp;nbsp;seconds &amp;nbsp;&amp;nbsp;seconds&amp;nbsp;&amp;nbsp;&amp;nbsp; calls &amp;nbsp;&amp;nbsp;s/call &amp;nbsp;&amp;nbsp;s/call &amp;nbsp;name &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;12.79 &amp;nbsp;&amp;nbsp;&amp;nbsp; 62.18&amp;nbsp;&amp;nbsp;&amp;nbsp; 62.18 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __read_nocancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;10.78&amp;nbsp;&amp;nbsp;&amp;nbsp; 114.60&amp;nbsp;&amp;nbsp;&amp;nbsp; 52.42 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pthread_mutex_lock&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;10.56&amp;nbsp;&amp;nbsp;&amp;nbsp; 165.94&amp;nbsp;&amp;nbsp;&amp;nbsp; 51.34 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __write_nocancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;5.76&amp;nbsp;&amp;nbsp;&amp;nbsp; 193.94&amp;nbsp;&amp;nbsp;&amp;nbsp; 28.00 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __pthread_mutex_unlock_usercnt&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;4.03&amp;nbsp;&amp;nbsp;&amp;nbsp; 213.52&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.58 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __recvmsg_nocancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;3.58&amp;nbsp;&amp;nbsp;&amp;nbsp; 230.92&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.40 &amp;nbsp;&amp;nbsp;302956 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;MYSQLparse(void*)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;2.95&amp;nbsp;&amp;nbsp;&amp;nbsp; 245.27&amp;nbsp;&amp;nbsp;&amp;nbsp; 14.35 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __lll_unlock_wake&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;2.37&amp;nbsp;&amp;nbsp;&amp;nbsp; 256.81&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.54 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __lll_lock_wait&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;2.18&amp;nbsp;&amp;nbsp;&amp;nbsp; 267.42&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.61 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __pread_nocancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;2.18&amp;nbsp;&amp;nbsp;&amp;nbsp; 278.03&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.61 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __profile_frequency&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.83&amp;nbsp;&amp;nbsp;&amp;nbsp; 286.94 &amp;nbsp;&amp;nbsp;&amp;nbsp; 8.91 &amp;nbsp;3615646 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;MYSQLlex(void*, void*)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.82&amp;nbsp;&amp;nbsp;&amp;nbsp; 295.80 &amp;nbsp;&amp;nbsp;&amp;nbsp; 8.86 &amp;nbsp;&amp;nbsp;974119 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;find_key_block&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.70&amp;nbsp;&amp;nbsp;&amp;nbsp; 304.07 &amp;nbsp;&amp;nbsp;&amp;nbsp; 8.27 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __lseek_nocancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.44&amp;nbsp;&amp;nbsp;&amp;nbsp; 311.05 &amp;nbsp;&amp;nbsp;&amp;nbsp; 6.98 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; confstr&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.29&amp;nbsp;&amp;nbsp;&amp;nbsp; 317.32 &amp;nbsp;&amp;nbsp;&amp;nbsp; 6.27 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __pthread_enable_asynccancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.21&amp;nbsp;&amp;nbsp;&amp;nbsp; 323.22 &amp;nbsp;&amp;nbsp;&amp;nbsp; 5.90 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pthread_setschedprio&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.20&amp;nbsp;&amp;nbsp;&amp;nbsp; 329.05 &amp;nbsp;&amp;nbsp;&amp;nbsp; 5.83 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __pthread_disable_asynccancel&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.15&amp;nbsp;&amp;nbsp;&amp;nbsp; 334.64 &amp;nbsp;&amp;nbsp;&amp;nbsp; 5.59 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cfree&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.13&amp;nbsp;&amp;nbsp;&amp;nbsp; 340.13 &amp;nbsp;&amp;nbsp;&amp;nbsp; 5.49 &amp;nbsp;&amp;nbsp;200787 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;Protocol::send_fields()&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.09&amp;nbsp;&amp;nbsp;&amp;nbsp; 345.41 &amp;nbsp;&amp;nbsp;&amp;nbsp; 5.28 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; malloc&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;1.00&amp;nbsp;&amp;nbsp;&amp;nbsp; 350.26 &amp;nbsp;&amp;nbsp;&amp;nbsp; 4.85 &amp;nbsp;1525265 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;bmove512&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.93&amp;nbsp;&amp;nbsp;&amp;nbsp; 354.77 &amp;nbsp;&amp;nbsp;&amp;nbsp; 4.51 &amp;nbsp;5901865 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;ha_key_cmp&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.85&amp;nbsp;&amp;nbsp;&amp;nbsp; 358.88 &amp;nbsp;&amp;nbsp;&amp;nbsp; 4.11 &amp;nbsp;5554910 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;Protocol::net_store_data()&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.79&amp;nbsp;&amp;nbsp;&amp;nbsp; 362.72 &amp;nbsp;&amp;nbsp;&amp;nbsp; 3.84 &amp;nbsp;7464391 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;copy_and_convert()&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.73&amp;nbsp;&amp;nbsp;&amp;nbsp; 366.25 &amp;nbsp;&amp;nbsp;&amp;nbsp; 3.53 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pthread_rwlock_unlock&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.72&amp;nbsp;&amp;nbsp;&amp;nbsp; 369.74 &amp;nbsp;&amp;nbsp;&amp;nbsp; 3.49 &amp;nbsp;&amp;nbsp;242753 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;mysql_ha_read()&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.71&amp;nbsp;&amp;nbsp;&amp;nbsp; 373.18 &amp;nbsp;&amp;nbsp;&amp;nbsp; 3.45 &amp;nbsp;&amp;nbsp;792885 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 &amp;nbsp;simple_key_cache_read&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.67&amp;nbsp;&amp;nbsp;&amp;nbsp; 376.46 &amp;nbsp;&amp;nbsp;&amp;nbsp; 3.28 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pthread_rwlock_rdlock&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 13.5pt; margin-top: 0pt;"&gt;&lt;span style="background-color: #f3f3f3; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;0.66&amp;nbsp;&amp;nbsp;&amp;nbsp; 379.67 &amp;nbsp;&amp;nbsp;&amp;nbsp; 3.21 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memcpy&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Inspecting the new performance_schema on MySQL 5.5 &lt;/span&gt;&lt;span style="background-color: #eeeeee; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #eeeeee; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #eeeeee; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;SELECT EVENT_NAME, COUNT_STAR FROM events_waits_summary_global_by_event_name &amp;nbsp;ORDER BY COUNT_STAR DESC LIMIT 10; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;table style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: navy; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: italic; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;% Performance Schema&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: navy; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;InnoDB&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: navy; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: navy; color: white; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;MyISAM&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 28px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/mutex/mysys/KEY_CACHE::cache_lock&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;39&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/mutex/sql/THD::LOCK_thd_data &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;45&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;22&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 25px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/mutex/innodb/kernel_mutex &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;27&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/io/file/myisam/dfile &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;14&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/mutex/myisam/MYISAM_SHARE::intern_lock&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;10&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/mutex/mysys/THR_LOCK::mutex&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;18&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: yellow; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;10&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/rwlock/innodb/btr_search_latch&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;9&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 20px;"&gt;&lt;td style="background-color: #ff3333; border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: #ff3333; color: navy; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;wait/synch/rwlock/myisam/MYISAM_SHARE::key_root_lock&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="border-bottom: rgb(170,170,170) 1px dotted; border-left: rgb(170,170,170) 1px dotted; border-right: rgb(170,170,170) 1px dotted; border-top: rgb(170,170,170) 1px dotted; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;div style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Courier New; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;5&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="internal-source-marker_0.3368653078502877" style="background-color: white; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;There are still some contentions like those&lt;a href="http://www.facebook.com/note.php?note_id=404965725932"&gt; fixed by the glorious facebook team&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span id="internal-source-marker_0.3368653078502877" style="background-color: white; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span id="internal-source-marker_0.3368653078502877" style="background-color: white; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;but the dev team at Monty Program is working hard to remove some of them, and have already made some good progress in 5.2 and 5.3,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="internal-source-marker_0.3368653078502877" style="background-color: white; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;A special can do for the PBXT team that again bring there storage on top knowing that they came with some handler_socket implementation into pbms a long time ago. It should be very intresting to&amp;nbsp; compare PBMS with Handler_socket in a next post.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="internal-source-marker_0.3368653078502877" style="background-color: white; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Stay tune for some improvements on the handler interface on future releases. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1465698062117590441-3876407813183160789?l=varokism.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://varokism.blogspot.com/feeds/3876407813183160789/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://varokism.blogspot.com/2010/12/using-mysql-as-nosql-story-for_27.html#comment-form' title='4 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/3876407813183160789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1465698062117590441/posts/default/3876407813183160789'/><link rel='alternate' type='text/html' href='http://varokism.blogspot.com/2010/12/using-mysql-as-nosql-story-for_27.html' title='Using MySQL as a NoSQL: a story for exceeding 450000 qps with MariaDB'/><author><name>Stephane Varoqui</name><uri>http://www.blogger.com/profile/03522584597977748522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ip0f13BBn-U/TRiTt1sHI2I/AAAAAAAAAAU/Yr-mA2vvqhQ/S220/resume_steph_html_m8af44cc.png'/></author><thr:total>4</thr:total></entry></feed>
