I was wanting to save my site themes to my database but I was wondering if I can just store all the files and information I need in one row. I didn't want to make 100 rows each with image content.
So for example in 1 row I would have
theme_name
theme_date
theme_data
theme_css_data
theme_js_data
theme_images
etc..
I read that it is better to save images/documents with a BLOB to a database as it takes up less space than a physical disk. But will this be a pain when backing up the database?
Which is a commonly used way to save images,word documents, pds, excel that are part of a theme?
you can save the whole theme in one single field, but how are you gonna use it later? if you need just to archive unused theme then you can pack it in database, but if you want to use files you should do 2 tables:
themes
with fields:
theme_files
in this case it is better to have one row per each file because when you query the database you want to extract one single file you could use it's theme_file_keyname or theme_file_name. You don't always need all files of the theme