MySQL Forums
Forum List  »  Performance

text vs varchar
Posted by: hua kai
Date: April 28, 2016 08:36AM

Hi

I use innodb storage engine.

As I know, if data lenght is not more than 255, it's better to use varchar(255) than text. But if the lenght is more than 255, like 4000, is that same to use varchar(4000) as text? which is better for performance?

And for these big data type columns (this column will not be used in select/query list in main table, just used in get one specific item with primary key query), which is better:
1. stored with other column in the same table
2. stored in another seperated table.

or both are ok, for the column will not be used in select for list

Options: ReplyQuote


Subject
Views
Written By
Posted
text vs varchar
862
April 28, 2016 08:36AM
446
April 29, 2016 12:41AM
450
April 30, 2016 11:51PM
477
May 02, 2016 04:37AM
420
May 02, 2016 09:14PM
421
May 03, 2016 02:19AM
671
May 03, 2016 04:12AM
409
May 02, 2016 08:02PM
523
May 03, 2016 02:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.