When files have to be saved to database? -


the images , documents saved filesystem or database. example can save byte array , store in database or can save filesystem , url. when files saved database , when filesystem? or both? best method store files?

if looking system save files to, name suggests, "filesystem". database can hold files, purposes useless.

you can save location (directory, name/hash, etc) in database, save file on filesystem. databases in lot of things, saving files isn't it.

of course, if documents pure tekst, might better save them database, e.g. elasticsearch, can search, these special cases: you're not talking saving files, you're talking searching, accidentally find different way save file.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -