<?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: Enum Fields VS Varchar VS Int + Joined table: What is Faster?</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Wed, 17 Mar 2010 18:15:22 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Farrukh</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-624098</link>
		<dc:creator>Farrukh</dc:creator>
		<pubDate>Tue, 04 Aug 2009 18:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-624098</guid>
		<description>In the test you used int+join table, what if we move the join table functionality to our application and just compare ENUM VS CHAR VS INT.</description>
		<content:encoded><![CDATA[<p>In the test you used int+join table, what if we move the join table functionality to our application and just compare ENUM VS CHAR VS INT.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praca</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-492290</link>
		<dc:creator>praca</dc:creator>
		<pubDate>Sat, 28 Feb 2009 15:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-492290</guid>
		<description>I use tinyint(1) to present value 0 or 1.
I thing enum, boolean and others methods works slower.</description>
		<content:encoded><![CDATA[<p>I use tinyint(1) to present value 0 or 1.<br />
I thing enum, boolean and others methods works slower.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Little surprises &#171; Arien&#8217;s Blog</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-483661</link>
		<dc:creator>Little surprises &#171; Arien&#8217;s Blog</dc:creator>
		<pubDate>Sat, 21 Feb 2009 00:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-483661</guid>
		<description>[...] about it, but after that session I was looking up some VARCHAR vs CHAR debate information and found this post on the MySQL Performance Blog. Turns out his idea isn&#8217;t really that crazy (performance-wise, at [...]</description>
		<content:encoded><![CDATA[<p>[...] about it, but after that session I was looking up some VARCHAR vs CHAR debate information and found this post on the MySQL Performance Blog. Turns out his idea isn&#8217;t really that crazy (performance-wise, at [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Получение списка возможных значений поля ENUM &#124; Записки MySQL девелопера</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-449160</link>
		<dc:creator>Получение списка возможных значений поля ENUM &#124; Записки MySQL девелопера</dc:creator>
		<pubDate>Tue, 20 Jan 2009 07:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-449160</guid>
		<description>[...] Интересная статья о производительности полей типа [...]</description>
		<content:encoded><![CDATA[<p>[...] Интересная статья о производительности полей типа [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: somebody</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-324239</link>
		<dc:creator>somebody</dc:creator>
		<pubDate>Mon, 07 Jul 2008 15:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-324239</guid>
		<description>have you guys tried indexing state_id on the cities_join table.
though I read something about frequent inserts with indexes being slow.
but would indexing speed things up?

and also

SELECT SQL_NO_CACHE c.city FROM states s LEFT JOIN cities_join c ON (s.id = c.state_id) WHERE s.name=&#039;Minnesota&#039; LIMIT 10000,5;

since your searching by state maybe if you place it at the left mysql would search for that first and then search for the cities with similar state_id, and it will be ordered automatically.

ENUM is what got me to this blog, but since you guys said its dangerous, it&#039;s no longer in my options.</description>
		<content:encoded><![CDATA[<p>have you guys tried indexing state_id on the cities_join table.<br />
though I read something about frequent inserts with indexes being slow.<br />
but would indexing speed things up?</p>
<p>and also</p>
<p>SELECT SQL_NO_CACHE c.city FROM states s LEFT JOIN cities_join c ON (s.id = c.state_id) WHERE s.name=&#8217;Minnesota&#8217; LIMIT 10000,5;</p>
<p>since your searching by state maybe if you place it at the left mysql would search for that first and then search for the cities with similar state_id, and it will be ordered automatically.</p>
<p>ENUM is what got me to this blog, but since you guys said its dangerous, it&#8217;s no longer in my options.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakan</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-312410</link>
		<dc:creator>Hakan</dc:creator>
		<pubDate>Wed, 11 Jun 2008 14:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-312410</guid>
		<description>Thanks for the test. 

I think using the 4th way depends on the application. On our case, we store this kind of information in TINYINT and do the work in application, as we only select 25 of them at once. But when selecting thousands of row, and making change in all of them may not be better than storing in ENUM or varchar. I&#039;ll do some tests about this when I have time and post here.</description>
		<content:encoded><![CDATA[<p>Thanks for the test. </p>
<p>I think using the 4th way depends on the application. On our case, we store this kind of information in TINYINT and do the work in application, as we only select 25 of them at once. But when selecting thousands of row, and making change in all of them may not be better than storing in ENUM or varchar. I&#8217;ll do some tests about this when I have time and post here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-296742</link>
		<dc:creator>Raymond</dc:creator>
		<pubDate>Thu, 08 May 2008 18:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-296742</guid>
		<description>Thank you for these tests, it helped us find a solution to several issues before implementing.</description>
		<content:encoded><![CDATA[<p>Thank you for these tests, it helped us find a solution to several issues before implementing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: *confused*</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-283254</link>
		<dc:creator>*confused*</dc:creator>
		<pubDate>Sun, 20 Apr 2008 07:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-283254</guid>
		<description>16 bit fixed length integers vs random length strings (32 to 400 bits)

Shouldn&#039;t the enum be several orders of magnitude faster, especially on sorts? I don&#039;t understand.
Please explain to me why the benchmark shows only negligible differences.</description>
		<content:encoded><![CDATA[<p>16 bit fixed length integers vs random length strings (32 to 400 bits)</p>
<p>Shouldn&#8217;t the enum be several orders of magnitude faster, especially on sorts? I don&#8217;t understand.<br />
Please explain to me why the benchmark shows only negligible differences.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Оптимизация работы с MySQL at Всякие интересные штучки для WEB-разработчика</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-242725</link>
		<dc:creator>Оптимизация работы с MySQL at Всякие интересные штучки для WEB-разработчика</dc:creator>
		<pubDate>Fri, 15 Feb 2008 02:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-242725</guid>
		<description>[...] Хотя ENUM и противоречит нормальным формам, но, как показывают тесты, он быстрее других [...]</description>
		<content:encoded><![CDATA[<p>[...] Хотя ENUM и противоречит нормальным формам, но, как показывают тесты, он быстрее других [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Оптимизация работы с MySQL &#124; Записки маленького юниксоида</title>
		<link>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/comment-page-1/#comment-242523</link>
		<dc:creator>Оптимизация работы с MySQL &#124; Записки маленького юниксоида</dc:creator>
		<pubDate>Thu, 14 Feb 2008 12:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/#comment-242523</guid>
		<description>[...] Хотя ENUM и противоречит нормальным формам, но, как показывают тесты, он быстрее других [...]</description>
		<content:encoded><![CDATA[<p>[...] Хотя ENUM и противоречит нормальным формам, но, как показывают тесты, он быстрее других [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
