MySQL Text vs. Varchar Performance
1–10 of 23 posts
Re: MySQL Text vs. Varchar Performance
#2Re: MySQL Text vs. Varchar Performance
#3Can anyone offer a TL;DR?
Re: MySQL Text vs. Varchar Performance
#4Can anyone offer a TL;DR?
Conclusion: long varchars are there but they suck. Limit their length and test test test before deploying changes to the live.
Re: MySQL Text vs. Varchar Performance
#5Re: MySQL Text vs. Varchar Performance
#6Re: MySQL Text vs. Varchar Performance
#7Re: MySQL Text vs. Varchar Performance
#8This is why I like VARCHAR(MAX) in SQL Server if the row is 8192 it's TEXT. You only pay the penalty on rows that exceed that threshold. Best of all you can store 2GB of text in a VARCHAR(MAX) http://msdn.microsoft.com/en-us/library/ms176089.aspx
Re: MySQL Text vs. Varchar Performance
#9Earlier quoted context omitted.
if things are slow, check EXPLAIN first.
Which strangely seemed to be one of the last things this guy did, mysql explain and profile are usually enough to see what is going on.
Re: MySQL Text vs. Varchar Performance
#10But actually it's much worse than that: you can get on-disk temp tables if you're selecting a TEXT field while doing an ORDER BY or GROUP BY that uses any columns from the second table in a join.