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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.