Is there/has somebody any comparison, personal experience, or guideline when to use the text type instead of a large varchar in MySQL?
While most of the entries in my database will be less than 1000 characters, some might take up to 4000 characters or more. What is the limiting length of varchar which makes text a better variant?
I do not need to index those fields.
I don’t have personal experience, but this guy does:
VARCHAR vs. TEXT – some performance numbers
Quick answer: varchar was a good bit faster.
Edit – no, it wasn’t. He was indexing them differently – he had a full index on the varchar (255 chars) but a 255-char prefix index on the text. When he removed that, they performed more or less the same.
Later in the thread is this interesting tidbit:
Edit 2 – some more relevant info, this time comparing the way different indices deal with the various types.