-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Large Object Storage using NHibernate (BLOBs, CLOBs and XML)
PostPosted: Wed Mar 11, 2009 10:48 pm 
Newbie

Joined: Wed Mar 11, 2009 10:08 pm
Posts: 4
It seems that a common problem people have with NHibernate is mapping large BLOBs. Part of that problem can be solved with various lazy loading techniques.

When the data outgrows the size that is useful to keep in memory it gets trickier. We can't map it to byte[], string and XmlDocuments any more. We need to stream it.

I've just started a blog post series about this issue.

http://blog.calyptus.eu/seb/2009/03/lar ... and-xlobs/

People looking for a quick solution might want to read it in a few weeks when the code library starts to stabilize.

My suggestion involves incorporating new Blob and Clob style contracts (similar to the ones in Java) in the .NET framework because as far as I know, there isn't really a comparable base class or interface available. Streams and TextReaders aren't really appropriate.

Since this is such an intrusive suggestion I would like to get a discussion going around these new types. If you find this stuff interesting, please, have a read and let me know what you think.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 17, 2009 5:20 am 
Newbie

Joined: Tue Mar 17, 2009 4:43 am
Posts: 1
Hello Sebastian,

in my current project i have to store a huge amount of xml and binary documents in a "CMS" implemented in C# using nHibernate.
My first attempt was to use a VarBinary(MAX) field in Sql Server 2008 - this approach works but i thing it would be a much better solution to use the new FileStream feature of Sql Server 2008 or the equivalent in Oracle 10g so I'm curious about your solution.

regards,
Hannes Biribauer


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.