Another advantage to serving files from the file system is that if you
are serving your dynamic content behind apache, you could free up you
application server by getting apache to load static content. I did
this for a client and it freed up some memory.

Could you implement caching rather? You could either put it at a
hibernate level or closer to the view. If you do try this let me know
how it goes.

Brian


On Wed, Jun 18, 2008 at 1:53 PM, Johan Nilsson <[EMAIL PROTECTED]> wrote:
> 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
>>>
>>>
>>>
>
>
> >
>



-- 
Brian Silberbauer
Consultant

+27 (0)83 566 2705
skype: brian.silberbauer
http://www.linkedin.com/in/briansilberbauer

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