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é :)
|