Doubts about file storage on server [closed]

-3

What is the best way to store files on a server, such as binary database, or save it to directories. Is there any difference between cost of processing in a web application?

    
asked by anonymous 07.10.2015 / 03:30

1 answer

0

It all depends on the solution you want to deploy and what features you already have. Storing in the Database is a good idea, it does not have a big impact on the performance (contrary to what many people think - at least in SQL Server), since in SELECT include as few times as possible the field in which it contains the file. But you have the problem of limiting the Database itself. That is, depending on the SQL Server license you have, this may or may not be a good idea.

If you choose to write outside the Database, you should also think about how you will manage the addresses. For example, "any" user with folder access can perfectly rename the file, put it in another folder, etc., and all this without updating the mapping in the Database.

There is still the Cloud solution, so the story is another.

    
07.10.2015 / 11:44