<?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"
	>
<channel>
	<title>Comments on: TRUNCATE now and unto ages of ages</title>
	<atom:link href="http://blogs.mysql.com/peterg/2008/06/09/truncate-now-and-unto-ages-of-ages/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mysql.com/peterg/2008/06/09/truncate-now-and-unto-ages-of-ages/</link>
	<description>By MySQL development-department workers</description>
	<pubDate>Wed, 25 Nov 2009 01:20:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Arjen Lentz</title>
		<link>http://blogs.mysql.com/peterg/2008/06/09/truncate-now-and-unto-ages-of-ages/#comment-195</link>
		<dc:creator>Arjen Lentz</dc:creator>
		<pubDate>Mon, 09 Jun 2008 04:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mysql.com/peterg/2008/06/09/truncate-now-and-unto-ages-of-ages/#comment-195</guid>
		<description>The exact behaviour of TRUNCATE will depend on the storage engine used, and the version of MySQL.
MyISAM has "always" supported truncate by truncating MYD/MYI and rewriting the MYI file header. Internally it's not quite a drop, but the reinitialisation the MYI header does reset the auto-inc counter.
By default, engines would map it to DELETE FROM table, making it a DML query with all the bells, and no resetting of auto-inc.
Somewhere in the 4.0 line, InnoDB started supporting TRUNCATE the way MyISAM does.
So, despite all your proof, I'd say "it depends" (on the engine, mostly).</description>
		<content:encoded><![CDATA[<p>The exact behaviour of TRUNCATE will depend on the storage engine used, and the version of MySQL.<br />
MyISAM has &#8220;always&#8221; supported truncate by truncating MYD/MYI and rewriting the MYI file header. Internally it&#8217;s not quite a drop, but the reinitialisation the MYI header does reset the auto-inc counter.<br />
By default, engines would map it to DELETE FROM table, making it a DML query with all the bells, and no resetting of auto-inc.<br />
Somewhere in the 4.0 line, InnoDB started supporting TRUNCATE the way MyISAM does.<br />
So, despite all your proof, I&#8217;d say &#8220;it depends&#8221; (on the engine, mostly).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
