TEXT
and BLOB
data are not stored in the same space as the column itself. They are stored in a special area reserved for this purpose.
These columns are always slower to retrieve, but the number of slowdowns varies greatly depending on your system setup and data loading. Sometimes it does not matter, and sometimes it leads to serious fraud. Just keep in mind that you should use the short VARCHAR
field in the TEXT
field if you can control it that the longer blob fields do not come for free.
At the same time, TEXT
columns are stored in the row as a pointer to the actual data, which makes them much smaller than VARCHAR
in most cases. If you do not select them, they will not load, and you will not require additional searches necessary to collect your data.
To be sure this applies to your version of MySQL and your setup, build two large tables full of representative data and compare them yourself.
source share