-->
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: lazy initilization of large string (ntext) columns
PostPosted: Wed Sep 14, 2005 11:16 am 
Newbie

Joined: Wed Sep 14, 2005 11:03 am
Posts: 4
Location: Mississauga
Hi Folks, I have inherited a database that was originally being used from a vb application.

We are now moving to java/hibernate. The database schema is not bad, but isn't perfect either.

Whats causing me problems is that a lot of tables have ntext columns that can be as large as 100kb. Further there are BLOBS holding binary data and so forth.

Is there a way to tell hibernate to do lazy initilize on property fields, I couldn't find a way to do lazy initialization on property decleration ???

Is there a worksround I could use. I have been looking into mapping documentation but havn't had much success. A nudge in the right direction will be greatly appreciated.


Hibernate version: 2.0

Mapping documents:
<property
name="notes"
type="java.lang.String"
update="true"
insert="true"
access="property"
column="Notes"
length="1073741823"
/>


Name and version of the database: MSSQL 2000


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 11:25 am 
Beginner
Beginner

Joined: Tue Aug 16, 2005 11:06 pm
Posts: 46
H3 supports the lazy fetching of properties.

Quote:
Please note that this is mostly a marketing feature, as in practice, optimizing row reads is much more important than optimization of column reads. However, only loading some properties of a class might be
useful in extreme cases, when legacy tables have hundreds of columns and the data model can not be improved.


Hope it is useful.

_________________
Jason Li
Don't forget to rate:)


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.