When you ask what the βbestβ solution is, it is recommended that you include evaluation criteria β speed, cost, simplicity, service, etc.
Mikko Manu gave the answer largely on money. I have not used Informix after 20 years, but most databases are slightly slower when working with BLOB blocks - especially the step of getting BLOBs to and from the database can be slow.
This problem tends to get worse as more and more users access the system at the same time, especially if they are using a web application - the application server must work quite hard to get files from the database and it probably consumes a lot more memory for it these requests than usual, and it will probably take longer to complete the file-related requests than for "regular" pages.
This can slow down the web server at moderate load. If you decide to save documents to your database, I highly recommend performing some performance tests to see if you have a problem. Such a solution tends to reveal shortcomings in your setup that otherwise would not have been identified (slow network connection to the database server, insufficient RAM on your web servers, etc.)
To avoid this, I saved the "main" copies of documents in the database, so they all get backups together, and I can ask questions about the database, for example: "Do I have all the documents for user x?" However, I used the cache on the web server to avoid reading documents from the database more than I need. This works well if you have a βone-time, one-time read,β such as a content management system in which the cache can earn.
Neville kuyt
source share