File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes BLOB Advantages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "BLOB Advantages?" Watch "BLOB Advantages?" New topic

BLOB Advantages?

Pervez Ahmed

Joined: Jul 18, 2001
Posts: 19
Hi all,

I've trying to store nearly 80,000 files (75K each) somewhere (file system or database). Is the advantage with BLOB's that they can access the files
much faster through the database versus a file system (performance)?? I am guessing memory is still a major issue to think over since I will need over 5GB on both hard drives (database or file server). BLOB's are new to me and I'm trying to figure out their purpose. Thanks for any input!!!
Pervez Ahmed

Joined: Jul 18, 2001
Posts: 19
Can someone assist with this please?
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Probabely the best thing to do is to run a couple of tests measuring the performance in both cases, it should be pretty simple.
Using a BLOB is supposed to be more efficient than using another form, but I dont know how it compares to filesystem access. Major disadvantage of BLOB is that you can use it only as long as your transaction lasts.
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
In my previous company, we were storing a large number of images. The Architects always wanted to store the images as files instead of BLOBs. The reason cited was a) performance and b) it's easier to share images between apps if they are stored as images(2 differrent databases can point to the same image if the image is stored as a file on a shared drive or HTTP location). I did'nt do any performance tests myself, so I cant vouch for it. But logically , if your server is going to host large-sized files to a lot of clients, then it's better to put those files on a differrent server. You can configure the File Server based on the size of the files, number of requests, yadda, yadda, yadda
I agree. Here's the link:
subject: BLOB Advantages?
It's not a secret anymore!