<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Materialized Views in MySQL</title>
	<atom:link href="http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/</link>
	<description>Thats all me!</description>
	<lastBuildDate>Tue, 10 Mar 2009 09:03:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ezani</title>
		<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/comment-page-1/#comment-17</link>
		<dc:creator>ezani</dc:creator>
		<pubDate>Tue, 03 Feb 2009 07:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://pure.rednoize.com/?p=9#comment-17</guid>
		<description>Sorry I may have misunderstood this completely but I do not see the point of duplicating a table which already exists. Why not just use (and update or refresh) the original table ? :-o</description>
		<content:encoded><![CDATA[<p>Sorry I may have misunderstood this completely but I do not see the point of duplicating a table which already exists. Why not just use (and update or refresh) the original table ? :-o</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/comment-page-1/#comment-16</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 28 Aug 2006 08:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://pure.rednoize.com/?p=9#comment-16</guid>
		<description>Sounds like a cron job to me! :)

Cheers for the info.</description>
		<content:encoded><![CDATA[<p>Sounds like a cron job to me! :)</p>
<p>Cheers for the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/comment-page-1/#comment-15</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 20 Mar 2006 14:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://pure.rednoize.com/?p=9#comment-15</guid>
		<description>When the select query is quite heavy isn&#039;t it more profitable to update the view instead of re-creating it?</description>
		<content:encoded><![CDATA[<p>When the select query is quite heavy isn&#8217;t it more profitable to update the view instead of re-creating it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Bouman</title>
		<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/comment-page-1/#comment-14</link>
		<dc:creator>Roland Bouman</dc:creator>
		<pubDate>Fri, 28 Oct 2005 13:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://pure.rednoize.com/?p=9#comment-14</guid>
		<description>Sorry, I should&#039;ve been more clear on that. When I said: &#039;Drawback is of course that you only have the FOR EACH ROW triggers..&#039; I did not mean that that was a problem in your code; i just meant the general sense of &#039;you&#039;; so that it would read: &#039;Drawback is of course that FOR EACH STATEMENT triggers are not supported&#039;. My fault, sorray again.

As for frequently changing data: that&#039;s were I think you could build an excellent solution by having each indidual change being pushed through incrementally, without reevalutating the entire set. If you post an example of your tables and your view, I&#039;ll show you how.

Roland.</description>
		<content:encoded><![CDATA[<p>Sorry, I should&#8217;ve been more clear on that. When I said: &#8216;Drawback is of course that you only have the FOR EACH ROW triggers..&#8217; I did not mean that that was a problem in your code; i just meant the general sense of &#8216;you&#8217;; so that it would read: &#8216;Drawback is of course that FOR EACH STATEMENT triggers are not supported&#8217;. My fault, sorray again.</p>
<p>As for frequently changing data: that&#8217;s were I think you could build an excellent solution by having each indidual change being pushed through incrementally, without reevalutating the entire set. If you post an example of your tables and your view, I&#8217;ll show you how.</p>
<p>Roland.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel Oelke</title>
		<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/comment-page-1/#comment-13</link>
		<dc:creator>Marcel Oelke</dc:creator>
		<pubDate>Thu, 27 Oct 2005 10:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://pure.rednoize.com/?p=9#comment-13</guid>
		<description>Thanks for your intresting comment Roland. I am not using the trigger in my case because the data in the tables the view builds uppon is changed very frequently. Besides i haven&#039;t found the &quot;AFTER STATEMENT&quot; for triggers in the mysql documentation.

Your scheduling procedures are very intresting. maybe i&#039;ll will use them instead of cron. thanks for that hint !

puRe</description>
		<content:encoded><![CDATA[<p>Thanks for your intresting comment Roland. I am not using the trigger in my case because the data in the tables the view builds uppon is changed very frequently. Besides i haven&#8217;t found the &#8220;AFTER STATEMENT&#8221; for triggers in the mysql documentation.</p>
<p>Your scheduling procedures are very intresting. maybe i&#8217;ll will use them instead of cron. thanks for that hint !</p>
<p>puRe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Bouman</title>
		<link>http://blog.fl3x.de/2005/10/26/materialized-views-in-mysql/comment-page-1/#comment-12</link>
		<dc:creator>Roland Bouman</dc:creator>
		<pubDate>Thu, 27 Oct 2005 10:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://pure.rednoize.com/?p=9#comment-12</guid>
		<description>Hi !

nice one, glad you solved your problem.

Have you thought of writing triggers for all events that would result in an modification of the data in the MVIEW, and have those changes being incrementally pushed through immediately when the event occurs? I suspect that would be a more balanced solution especially when you have some DML going on.
Nice thing about your solution is that it&#039;s so simple. Drawback is of course that you only have the FOR EACH ROW triggers, you&#039;d rather use AFTER STATEMENT for this one.

BTW, you can have MySQL perform periodical procedure calls without cron or external tools, check it out:

&lt;a href=&quot;http://rpbouman.blogspot.com/2005/10/scheduling-procedure-execution-in.html&quot; rel=&quot;nofollow&quot;&gt;http://rpbouman.blogspot.com/2005/10/scheduling-procedure-execution-in.html&lt;/a&gt;

This relies on the MySQL SLEEP() function.</description>
		<content:encoded><![CDATA[<p>Hi !</p>
<p>nice one, glad you solved your problem.</p>
<p>Have you thought of writing triggers for all events that would result in an modification of the data in the MVIEW, and have those changes being incrementally pushed through immediately when the event occurs? I suspect that would be a more balanced solution especially when you have some DML going on.<br />
Nice thing about your solution is that it&#8217;s so simple. Drawback is of course that you only have the FOR EACH ROW triggers, you&#8217;d rather use AFTER STATEMENT for this one.</p>
<p>BTW, you can have MySQL perform periodical procedure calls without cron or external tools, check it out:</p>
<p><a href="http://rpbouman.blogspot.com/2005/10/scheduling-procedure-execution-in.html" rel="nofollow">http://rpbouman.blogspot.com/2005/10/scheduling-procedure-execution-in.html</a></p>
<p>This relies on the MySQL SLEEP() function.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

