Jump to content

Large Size ???


pranshu82202

Recommended Posts

Longblob is the right data type for doing this with mysql.

 

Typically storing files inside the db is not the best solution in a web application, due to the overhead of having to receive the data and then pump it into the db via the client, as well as the fact that an rdbms offers very little functionality of any use on large blobs of data. 

 

People traditionally just store files on an nfs mounted filesystem for medium to large systems, or lately, have been using nosql solutions that are built for for storing files, and have the advantage of instrinsic distribution and scalability like mongodb's gridfs (see Tom's great intro to the topic http://www.phpfreaks.com/tutorial/an-introduction-to-php-and-mongodb) or membase: http://docs.couchbase.org/membase-getting-started-1.7/index.html

Link to comment
https://forums.phpfreaks.com/topic/243260-large-size/#findComment-1249355
Share on other sites

Yes, that is what I am suggesting.  Store a url and put the file on the filesystem or in one of the nosql systems I suggested.  You can just store files on the filesystem of the server, but this might be a problem if your site ever needs to scale beyond a single server.

Link to comment
https://forums.phpfreaks.com/topic/243260-large-size/#findComment-1249368
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.