What data type to use for variable length data (for performance)?

Posted by jiewmeng on Stack Overflow See other posts from Stack Overflow or by jiewmeng
Published on 2010-05-29T07:44:00Z Indexed on 2010/05/29 8:02 UTC
Read the original article Hit count: 182

What data type should I use for data that can be very short, eg. html link (think twitter), or very long eg. html blog post (think wordpress).

I am thinking if I use varchar(4000), it maybe too short for a html formated blog entry? but if I use text, it will take up more space and is less efficient?

© Stack Overflow or respective owner

Related posts about sql

Related posts about database