-->
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: Mulitple queries:Session/transaction?
PostPosted: Wed Dec 16, 2009 8:03 am 
Newbie

Joined: Wed Dec 16, 2009 1:54 am
Posts: 7
Apologies if it sounds too trivial but I am facing some in querying database.
I am doing some data insertions in DB in 4-5 steps and
then based on further computation I am trying to update the status of data inserted in above steps and at that time it is taking too much time/being idle(thread in stepping state).

Same status update call if I do again by stopping application based on values inserted it is running successfully.

Does it has something to do with session/transaction that i am not flushing/clearing so some space/cache/memory is full and it is not making further db calls?: just a wild guess.
Any thoughts?


Top
 Profile  
 
 Post subject: Re: Mulitple queries:Session/transaction?
PostPosted: Thu Dec 17, 2009 7:56 am 
Newbie

Joined: Wed Dec 16, 2009 1:54 am
Posts: 7
same issue came even when i am running "single simple select query" in a loop.
hibernate flush mode i have set to eager
Code:
hibernateTemplate.setFlushMode(HibernateAccessor.FLUSH_EAGER);


On explicitly flushing and closing session it is running couple of extra loops.
Everytime I am creating a new session.


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.