how big are the files?

We store BLOBS of up to 10 Megs with no issues.

I guess you could do some performance profiling of how long it takes
hibernate to save an object with a BLOB and then run it with a profiler to
see where the bottlenecks are. Try it with different DBMS etc. It doesn't
make sense for DB's to offer BLOB and for them not to perform. I agree
though, I don't think it's a hibernate problem. However, I don't see why you
shouldn't store binary in a database.

2008/6/17 Fritz Meissner <[EMAIL PROTECTED]>:

>
> It's a write problem, but I haven't looked too deeply into it. There
> could well be something other than DB issues, I was just asking about
> the general case of using DB vs disk for binaries.
>
> On Tue, Jun 17, 2008 at 11:27 AM, Brian Silberbauer
> <[EMAIL PROTECTED]> wrote:
> >
> > I've always leaned towards storing large files in the filesystem, the
> > problem with storing large data in the database is that you tend to
> > tie up database resources while you are storing retrieving.
> >
> > But, as ever, make sure that is where you are getting a performance
> > hit before you start hacking your code. A common problem with file
> > handling is the code reading/writing the entire file into memory
> > instead of streaming directly. There might be database tuning you
> > could do that would help too: is your problem a read or wite problem?
> >
> > Brian
> >
> >
> > On Tue, Jun 17, 2008 at 10:50 AM, Fritz Meissner
> > <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi all,
> >>
> >> I'm having some performance problems with saving files and one of my
> >> colleagues is blaming this on using Hibernate to store the files as
> >> BLOBs in a database - he suggests just writing to disk and storing a
> >> URL to the file in the DB instead. Does that sound like a reasonable
> >> solution? I've done a bit of googling and although I do see some
> >> recommendations to this effect, they're mostly from 4 year old forum
> >> posts - how are later versions of Hibernate for this?
> >>
> >> Thanks,
> >> Fritz
> >>
> >> >
> >>
> >
> >
> >
> > --
> > Brian Silberbauer
> > Consultant
> >
> > +27 (0)83 566 2705
> > skype: brian.silberbauer
> > http://www.linkedin.com/in/briansilberbauer
> >
> > >
> >
>
> >
>


-- 
see my blog:
http://analysis102.blogspot.com
http://audiblethoughts.blogspot.com
http://outsideofficehours.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to