-->
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: Data Flushing from Memory!
PostPosted: Fri Apr 16, 2004 5:49 am 
Beginner
Beginner

Joined: Thu Feb 26, 2004 6:59 am
Posts: 47
Location: Gurgaon, India
Hello,

Is partial flushing possible using any api?

1) pose, I load 1000 objects from database in the memory and now I want to unload first 100 objects from the memory, as i don't need this now. Can we do it?

is evict the right way?

2) what if I want to flush all the 1000 objects from the memory, conditions are :
I don't have the references of objects.
I don't want to close or flush the session.

I just want to drain the cache. Is it possible? So can we drain the cache on requirement bases?

3) Suppose I want to process 10000 objects. So for optimization, I can use fetchSize and so will get 100 records at a time.
But can I flush last 100 records from the memory without closing the session?

Please help for it. It is urgent.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 16, 2004 5:56 am 
Beginner
Beginner

Joined: Thu Feb 26, 2004 6:59 am
Posts: 47
Location: Gurgaon, India
One more scenerio is there,

If we have an object having any heavy weight property. For optimization, we can provide proxy for this property. Now if we load this property once, can we evict only this property from the memory, rather than whole object?


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.