I am working on a web application which stores notes created by users. I am confused between whether to store notes as separate files on filesystem, or use database column for saving the text.
If mysql is better solution then what datatype should I use(content can be simple text or html)?
If you need speed, you can use MySQL. You need to use either
BLOBor if it is just text, useTEXTas the datatype. Use a good DB engine (MySQL, SQLite, etc). Then, for maximum performance, use memcached to cache content.Keep in mind a couple things:
Another thing is, it is hard to search on flat files. If you use MySQL, not only it is faster, but also it is easier for you to search.