1) Storing data into files directly 2) Storing data into MySQL
which option is faster? in what circumstances?
Thanks in advance
It depends on what data, how much data, and what you want to do with the data. If you have a telephone directory that you want to search in, you can't beat a database.
If you have a library of images, it's much faster to store the image in files.