-->
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.  [ 1 post ] 
Author Message
 Post subject: Large object loading question
PostPosted: Thu Jul 15, 2010 7:28 am 
Newbie

Joined: Thu Jul 15, 2010 6:22 am
Posts: 1
Hi, I am a Hibernate newbie, got two questions hopefully not too silly for the hibernate experts here

I have two object, Stock and Tick

Stock has a property
Code:
Set<Tick> Ticks


In the database, I have about 30million ticks for a particular Stock. Now if I use

Code:
Stock oStock = (Stock)session.load(Stock.class);


Q1.Is this loading gonna load all 30million ticks?

What i want to do with the ticks is that I want to update some ticks of a particular Stock out of a portfolio of 30 stocks with correct values, therefore I need to do something like
Code:
Update Ticks Set Tick = xxx Where ValueDateTime = yyyy


Q2.What's the best approach to this kind of operation using hibernate? Should I load all 30 million ticks along with the Stock object?

Thanks


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

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.