Hello Fritz,
 There are other non-technical considerations with storing documents inside
or outside the database.
You can access the documents without having access to the database if they
are kept outside. You can also search the contents of the documents if they
are not inside the DB.
However, you don't have the same control over the documents if they are
outside the database and documents can also be changed and/or moved/deleted
from outside the database and outside your application. (You do want nice
error messages if documents are moved/deleted. ;-)
I have in a previous project only stored the paths with great success, and
that was inline with our requirements.

Cheers
 Johan

2008/6/18 Bobby Quinne <[EMAIL PROTECTED]>:

>
>
> On 6/17/08, 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 -
>
>
> I would profile the application before laying blame to anything. Have a
> look at gathering Hibernate statistics ->
> http://www.hibernate.org/hib_docs/reference/en/html/performance.html
>
> Another handy feature would be to run an 'explain plan' for the query and
> evaluate whats happening at a db level.
>
> But I would agree with the other comments about keeping files on the
> filesystem.
>
> 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
>>
>>
>> >>
>>

--~--~---------~--~----~------------~-------~--~----~
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