<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>MySQL-dump - SQL</title>
    <link>http://mysqldump.azundris.com/</link>
    <description>my life with MySQL</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:mysqldump@mysqldump.azundris.com" />
    <generator>Serendipity 1.2-beta2 - http://www.s9y.org/</generator>
    
    <image>
        <url>http://mysqldump.azundris.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: MySQL-dump - SQL - my life with MySQL</title>
        <link>http://mysqldump.azundris.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Innodb cache preloading using blackhole</title>
    <link>http://mysqldump.azundris.com/archives/70-Innodb-cache-preloading-using-blackhole.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/70-Innodb-cache-preloading-using-blackhole.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=70</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    In MyISAM, we do have &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=571&amp;amp;entry_id=70&quot; title=&quot;http://dev.mysql.com/doc/refman/5.0/en/load-index.html&quot;  onmouseover=&quot;window.status=&#039;http://dev.mysql.com/doc/refman/5.0/en/load-index.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;LOAD INDEX INTO CACHE&lt;/a&gt;. In InnoDB this does not work. For benchmarking I often require a way to preload the innodb_buffer_pool with the primary key and data after a server restart to shorten warmup phases.&lt;br /&gt;
&lt;br /&gt;
According to Blackhole Specialist Kai, the following should work: &lt;div class=&quot;bb-code-title&quot;&gt;CODE:&lt;/div&gt;&lt;div class=&quot;bb-code&quot;&gt;mysql&amp;#62;&amp;#160;create&amp;#160;table&amp;#160;t&amp;#160;like&amp;#160;innodbtable;&lt;br /&gt;
mysql&amp;#62;&amp;#160;alter&amp;#160;table&amp;#160;t&amp;#160;engine&amp;#160;=&amp;#160;blackhole;&lt;br /&gt;
mysql&amp;#62;&amp;#160;insert&amp;#160;into&amp;#160;t&amp;#160;select&amp;#160;&amp;#42;&amp;#160;from&amp;#160;innodbtable;&lt;/div&gt; Another win for the unbreakable BLACKHOLE storage engine. 
    </content:encoded>

    <pubDate>Fri, 15 Jun 2007 12:52:54 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/70-guid.html</guid>
    
</item>
<item>
    <title>PROCEDURE execute</title>
    <link>http://mysqldump.azundris.com/archives/52-PROCEDURE-execute.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/52-PROCEDURE-execute.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=52</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=52</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    Many maintenance procedures need to generate SQL as strings, and then need to execute that string as SQL. Use PREPARE for this.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-code-title&quot;&gt;CODE:&lt;/div&gt;&lt;div class=&quot;bb-code&quot;&gt;CREATE&amp;#160;DATABASE&amp;#160;`admin`;&lt;br /&gt;
USE&amp;#160;admin&lt;br /&gt;
&lt;br /&gt;
CREATE&amp;#160;PROCEDURE&amp;#160;`execute`&amp;#40;in&amp;#160;cmd&amp;#160;text&amp;#41;&lt;br /&gt;
SQL&amp;#160;SECURITY&amp;#160;INVOKER&lt;br /&gt;
begin&lt;br /&gt;
&amp;#160;&amp;#160;set&amp;#160;@x&amp;#160;=&amp;#160;cmd;&amp;#160;&lt;br /&gt;
&amp;#160;&amp;#160;prepare&amp;#160;x&amp;#160;from&amp;#160;@x;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;
&amp;#160;&amp;#160;execute&amp;#160;x;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;
&amp;#160;&amp;#160;drop&amp;#160;prepare&amp;#160;x;&amp;#160;&lt;br /&gt;
end&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
(as requested on Freenode:#mysql) 
    </content:encoded>

    <pubDate>Mon, 19 Jun 2006 12:52:30 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/52-guid.html</guid>
    
</item>
<item>
    <title>Triggers maintaining summaries</title>
    <link>http://mysqldump.azundris.com/archives/34-Triggers-maintaining-summaries.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/34-Triggers-maintaining-summaries.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=34</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=34</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    Frank asked in &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=303&amp;amp;entry_id=34&quot; title=&quot;http://mysqldatabaseadministration.blogspot.com/2006/01/can-mysql-triggers-update-another.html&quot;  onmouseover=&quot;window.status=&#039;http://mysqldatabaseadministration.blogspot.com/2006/01/can-mysql-triggers-update-another.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Can MySQL triggers update another table&lt;/a&gt; just that.&lt;br /&gt;
&lt;br /&gt;
Here is how to have a users table with a summary field, and a detail table with a value field. When records are inserted, modified or deleted with changing values in the detail table, the matching summaries in the users table are updated.&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/34-Triggers-maintaining-summaries.html#extended&quot;&gt;Continue reading &quot;Triggers maintaining summaries&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 25 Jan 2006 19:47:10 +0100</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/34-guid.html</guid>
    
</item>
<item>
    <title>The Quota Query and Running Sums by Jan and Kai</title>
    <link>http://mysqldump.azundris.com/archives/32-The-Quota-Query-and-Running-Sums-by-Jan-and-Kai.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/32-The-Quota-Query-and-Running-Sums-by-Jan-and-Kai.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=32</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    Last week I was with a customer and came across a side problem that was of a more general nature. It is the problem of users having a number of things that use up ressources. The things may be mails, recordings, stamps or whatever - for simplicity we assume recordings, and the ressource consumed is size. The system has a quota system in place, which stores a ressource limit per user. &lt;br /&gt;
&lt;br /&gt;
The quota problem is: if a user is over quota, we want to get a number of item ids to delete per user from old to new, until that user is under quota or just one item over quota. This is the quota problem, and I needed a quota query that solves it.&lt;br /&gt;
&lt;br /&gt;
Here is the setup.&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/32-The-Quota-Query-and-Running-Sums-by-Jan-and-Kai.html#extended&quot;&gt;Continue reading &quot;The Quota Query and Running Sums by Jan and Kai&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 18 Dec 2005 20:35:14 +0100</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/32-guid.html</guid>
    
</item>
<item>
    <title>Exploring stored procedures: Eratosthenes</title>
    <link>http://mysqldump.azundris.com/archives/29-Exploring-stored-procedures-Eratosthenes.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/29-Exploring-stored-procedures-Eratosthenes.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    The &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=293&amp;amp;entry_id=29&quot; title=&quot;http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;sieve&lt;/a&gt; of &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=294&amp;amp;entry_id=29&quot; title=&quot;http://en.wikipedia.org/wiki/Eratosthenes&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/Eratosthenes&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Eratosthenes&lt;/a&gt; finds prime numbers by creating a list of numbers, taking the smallest number in this list that is not stroken out and striking out all of its multiples, then going on to the next number that is not stroken out and so on.&lt;br /&gt;
&lt;br /&gt;
For example, if the starting list is (2, 3, 4, 5, 6, 7, 8, 9) (we do leave out 1, because it is not a prime), then the first number from the list is 2, and therefore 4, 6 and 8 cannot be primes and are removed from the list: 2 is prime, and the list is now (3, 5, 7, 9). Lowest number from the list is 3, and therefore 6 and 9 cannot be primes, leaving (5, 7) and so on.&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/29-Exploring-stored-procedures-Eratosthenes.html#extended&quot;&gt;Continue reading &quot;Exploring stored procedures: Eratosthenes&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 30 Nov 2005 09:21:19 +0100</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/29-guid.html</guid>
    
</item>
<item>
    <title>A graph problem</title>
    <link>http://mysqldump.azundris.com/archives/23-A-graph-problem.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/23-A-graph-problem.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=23</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    At work, I came across an interesting problem involving graphs for which I found no completely satisfactory solution. &lt;br /&gt;
&lt;br /&gt;
A colleague tried to model applications and their dependencies as a directed graph. When editing dependencies for a given node, he wanted to show only nodes as new possible descendants which are not yet direct descendants of the current node. Additionally, when selecting new parents, nodes that are already direct parents should not be shown. Since he is still on MySQL 4.0, subselects could not be used.&lt;br /&gt;
&lt;br /&gt;
Here is the data model and a bit of test data:&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&#039;center&#039;&gt;&lt;img width=&#039;177&#039; height=&#039;200&#039; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://mysqldump.azundris.com/uploads/graph.png&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/23-A-graph-problem.html#extended&quot;&gt;Continue reading &quot;A graph problem&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 22 Sep 2005 13:27:28 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/23-guid.html</guid>
    
</item>
<item>
    <title>Nermalisation</title>
    <link>http://mysqldump.azundris.com/archives/20-Nermalisation.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/20-Nermalisation.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>www@azundris.com (Azundris)</author>
    <content:encoded>
    &lt;img src=&quot;http://mysqldump.azundris.com/uploads/MySQLdump_cat.png&quot; align=&quot;left&quot; alt=&quot;Photo: MySQL-dump cat&quot; border=&quot;0&quot; /&gt;&lt;blockquote class=&quot;block&quot;&gt;An introduction to the normalisation of databases that requires no prior knowledge and serves as an excuse to introduce &lt;cite&gt;cat content&lt;/cite&gt; into &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=231&amp;amp;entry_id=20&quot; title=&quot;http://mysqldump.azundris.com/&quot;  onmouseover=&quot;window.status=&#039;http://mysqldump.azundris.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;MySQL-dump&lt;/a&gt;.&lt;br /&gt;
&lt;small&gt;&lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url=aHR0cDovL2thdHplLW1pdC13dXQuYXp1bmRyaXMuY29tL2luZGV4LnBocD9hcmNoaXZlcy8xMTYtR2VybWFuLmh0bWwmc2VyZW5kaXBpdHlbbGFuZ19zZWxlY3RlZF09ZGU=&amp;amp;entry_id=20&quot; title=&quot;http://katze-mit-wut.azundris.com/index.php?archives/116-German.html&amp;amp;serendipity[lang_selected]=de&quot;  onmouseover=&quot;window.status=&#039;http://katze-mit-wut.azundris.com/index.php?archives/116-German.html&amp;amp;serendipity[lang_selected]=de&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;German version&lt;/a&gt;&lt;/small&gt;&lt;/blockquote&gt;&lt;br clear=&quot;all&quot; /&gt; &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/20-Nermalisation.html#extended&quot;&gt;Continue reading &quot;Nermalisation&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 12 Sep 2005 00:44:00 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/20-guid.html</guid>
    
</item>
<item>
    <title>A day in the docs</title>
    <link>http://mysqldump.azundris.com/archives/14-A-day-in-the-docs.html</link>
            <category>Features</category>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/14-A-day-in-the-docs.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=14</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=14</wfw:commentRss>
    

    <author>www@azundris.com (Azundris)</author>
    <content:encoded>
    The most recent MySQL server I used in a &lt;em&gt;production&lt;/em&gt; environment was a 3.23, so in conjunction with reading the 5.0 sources, I saw fit to reread large parts of the &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=124&amp;amp;entry_id=14&quot; title=&quot;http://dev.mysql.com/doc/mysql/en/index.html&quot;  onmouseover=&quot;window.status=&#039;http://dev.mysql.com/doc/mysql/en/index.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;documentation&lt;/a&gt; to see where updates had happened, fixes were applied, extensions added. Here are some random clippings from the docs that illustrate quirks, changes from MySQL 3.23 (other than those noted in &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=125&amp;amp;entry_id=14&quot; title=&quot;http://dev.mysql.com/doc/mysql/en/upgrading-from-3-23.html&quot;  onmouseover=&quot;window.status=&#039;http://dev.mysql.com/doc/mysql/en/upgrading-from-3-23.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;3.23-&amp;gt;4.0&lt;/a&gt;,  &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=126&amp;amp;entry_id=14&quot; title=&quot;http://dev.mysql.com/doc/mysql/en/upgrading-from-4-0.html&quot;  onmouseover=&quot;window.status=&#039;http://dev.mysql.com/doc/mysql/en/upgrading-from-4-0.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;4.0-&amp;gt;4.1&lt;/a&gt;, &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=156&amp;amp;entry_id=14&quot; title=&quot;http://dev.mysql.com/doc/mysql/en/upgrading-from-4-1.html&quot;  onmouseover=&quot;window.status=&#039;http://dev.mysql.com/doc/mysql/en/upgrading-from-4-1.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;4.1-&amp;gt;5.0&lt;/a&gt; which we&#039;ll give a brief tour of at the end) and differences from the standard. If you recently read the docs, kindly walk on, there&#039;s nothing to see here. If being a MySQL admin is #96 on the list of who you are, stand by for some trivia. &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/14-A-day-in-the-docs.html#extended&quot;&gt;Continue reading &quot;A day in the docs&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 09 Sep 2005 08:31:00 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/14-guid.html</guid>
    
</item>
<item>
    <title>SQL-Zoo interactive tutorial</title>
    <link>http://mysqldump.azundris.com/archives/16-SQL-Zoo-interactive-tutorial.html</link>
            <category>SQL</category>
    
    <comments>http://mysqldump.azundris.com/archives/16-SQL-Zoo-interactive-tutorial.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=16</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    

    <author>www@azundris.com (Azundris)</author>
    <content:encoded>
    By chance, I came across this interactive &lt;a href=&quot;http://mysqldump.azundris.com/exit.php?url_id=80&amp;amp;entry_id=16&quot; title=&quot;http://sqlzoo.net/&quot;  onmouseover=&quot;window.status=&#039;http://sqlzoo.net/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;interactive SQL tutorial&lt;/a&gt; &amp;mdash; select your preferred engine, create queries for a variety of exercises, see the results online immediately. Instructive for the beginner, possibly fun for the advanced. &lt;tt&gt;: )&lt;/tt&gt; 
    </content:encoded>

    <pubDate>Fri, 02 Sep 2005 08:26:35 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/16-guid.html</guid>
    
</item>

</channel>
</rss>