<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to quickly wipe and recreate a db table that doesn&#8217;t have a migration</title>
	<atom:link href="http://nubyonrails.wordpress.com/2008/01/17/how-to-quickly-wipe-and-recreate-a-db-table-that-doesnt-have-a-migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://nubyonrails.wordpress.com/2008/01/17/how-to-quickly-wipe-and-recreate-a-db-table-that-doesnt-have-a-migration/</link>
	<description>Occasional adventures of a freelance Rails coder</description>
	<lastBuildDate>Thu, 10 Sep 2009 13:43:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: nubyonrails</title>
		<link>http://nubyonrails.wordpress.com/2008/01/17/how-to-quickly-wipe-and-recreate-a-db-table-that-doesnt-have-a-migration/#comment-1007</link>
		<dc:creator>nubyonrails</dc:creator>
		<pubDate>Mon, 06 Apr 2009 19:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://nubyonrails.wordpress.com/2008/01/17/how-to-quickly-wipe-and-recreate-a-db-table-that-doesnt-have-a-migration/#comment-1007</guid>
		<description>Sergio - that&#039;s a very handy thing to know, thanks a lot!</description>
		<content:encoded><![CDATA[<p>Sergio &#8211; that&#8217;s a very handy thing to know, thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Salvatore</title>
		<link>http://nubyonrails.wordpress.com/2008/01/17/how-to-quickly-wipe-and-recreate-a-db-table-that-doesnt-have-a-migration/#comment-1005</link>
		<dc:creator>Sergio Salvatore</dc:creator>
		<pubDate>Mon, 06 Apr 2009 18:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://nubyonrails.wordpress.com/2008/01/17/how-to-quickly-wipe-and-recreate-a-db-table-that-doesnt-have-a-migration/#comment-1005</guid>
		<description>Hi,

If we&#039;re talking about MySQL, running &quot;TRUNCATE TABLE [tableName]&quot; will reset the auto increment counter.  It&#039;s also significantly faster than &quot;DELETE FROM TABLE [tableName]&quot; (which you correctly stated will not reset the auto increment counter) when there are a lot of rows in the table because it basically deletes the files and creates new ones based on the schema.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If we&#8217;re talking about MySQL, running &#8220;TRUNCATE TABLE [tableName]&#8221; will reset the auto increment counter.  It&#8217;s also significantly faster than &#8220;DELETE FROM TABLE [tableName]&#8221; (which you correctly stated will not reset the auto increment counter) when there are a lot of rows in the table because it basically deletes the files and creates new ones based on the schema.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
