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: Progress messages during long-running activities inside NH
PostPosted: Fri Mar 19, 2010 8:42 am 
Newbie

Joined: Mon Feb 15, 2010 10:07 am
Posts: 2
Hi,

I am using NHibernate in a Windows Forms .NET 3.5 client application that talks to Oracle. Many parallel users, heavy concurrent access and real remoteness of the database server are reality here.

Most business transactions are short but some are long-running such as an import of several hundred, thousand or tens of thousands of records of the same entity. During these transactions I would like to provide the users with progress messaging such as a progress bar with status messages that runs from 0% to 100%. At the moment I have a problem doing this because:

* When I do my save-operations I can of course produce progress messages but this is not when the workload occurs. The workload occurs when NHibernate flushes and really processes the INSERT statements. This is the call I would like to support with progress messages.
* I have tried to explicitely flush after every single save. If course that is not recommended and it decreases performance by a factor that is absolutely infeasible (30 seconds become 21 minutes!)

So I was wondering if someone can give me a clue how to go about this problem since I cannot imagine that it is so unusual a wish that nobody has dealt with it before.

Thanks to all the experts in advance,
André
:)


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.