If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > saving images in a blob

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-06, 23:19
Frosty1 Frosty1 is offline
Registered User
 
Join Date: Jan 2005
Posts: 68
saving images in a blob

i am about to start a large project with upwards of a million images. i have been planning on uploading the images and storing them in directories on the webserver. then on upload it was going to index them with thier upload time, user, etc. in the database. i am wondering if with a large number of images like this if it will be more efficient to store them as blobs in the database. i am more concerned with read speed than space.

thanks,
forrest
Reply With Quote
  #2 (permalink)  
Old 02-26-06, 10:39
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
There is a tutorial on how to do this in php and it breaks down the speed of each operation. In short, storing images in directories and storing image bits in the database (and creating an image from the stream) take virtually the same amount of time. I believe if you store the images in the database on an unpartitioned disk, it will actually be much faster.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On