I’m currently building a website with Django and want to host user bio style pages which may be up to a several KB. These fields don’t necessarily need to be searched but do need to be served when the username is looked up.
Will it have a negative effect to store this data in the db? Would my server run better if I were to use static text files with a link in the DB?
The basic answer to your question is “storing your data in MySql” (vs an external text file): storing the data in the database is definitely the best approach here.
“BLOB” can be a generic term – in which case Oleksi is absolutely correct (I marked him +1, not down!).
But the specific MySql type you want is indeed TEXT:
Storing as TEXT in your mySql database will have many benefits (including, but not limited to, “performance”).
There’s no advantage to storing the text in external files that I can think of.
PS:
I have a legacy PHP/MySQL web app that uses a very old version that predates free-text searching in MySQL. If I can’t port it to a new server, I’m seriously considering saving all the “notes” data in external files, just so I can run a indexer like “Lucene” against the text. But that’s the exception to the rule. Storing in the database is almost certainly the best choice in your case. IMHO…