Quote:
|
Originally Posted by lutz
Hello!
I'm writing a flat database table with a few hundret thousand expected element entries. A file belongs to each entry. The files will cause most of the size. Would you recommend me to store the files in the database or in the file system? How do you decide? Does your decision depends on the expected file size or another criteria?
Best regards, Lutz
|
How big are the files? How will you be accessing them (ie. from what application?)
We did some analysis and decided to store some image files in our database. The big benefit was that they would be on the same filesystem as the rest of the database and would be backed up as one unit, so if there's a failure things wouldn't get out of synch.
In our case they would only be accessed through a web application server and streamed to a browser, so we coded that and we were done. You requirements might vary, it could be a pain to access the file once its there (from the application side).
And there's also network concerns, if you're constantly streaming the file data over the network from the database it could be a strain. Best to load test it to make sure everything holds together.
jono