G
Guest
Thanks for reading this post fellow listers. I am in a state of utter confusion and I hope that someone might be able to help me. Let me give some background on the architecture of the code to help with your understanding. I have an importation framework that is driven from xml config files. It maps a given field position to a strored procedure parameter. This is a distruted application which is using remoting. I have a ThreadHelper class that has a function that executes the code to call cycle through the records in a tab delimited text file, checks them for duplication, and then does an call to the remoting server to save a single record. During the initial parsing and the subsequent import operation the ThreadHelper class is throwing events as to number of errors caught, current record number about 17 other events. I have a control that allows me to fire off this thread helper class on it's own thread and captures the events and displays things like # records parsed, # errors during parse, # records to import, current record being imported, errors encountered during import, estimated time to completion, # of records per second being imported, average # of records per second imported and quite a few others. It also has a progress bar so the user can visually see how far along in the import process he/she is
Okay here comes the interesting and perplexing part. The control and framework work fine. When I fire off the import process with the application in focus the control is reporting between 6-9 records per second. As soon as I switch focus to another application the number of records per second being processed jumps up to between 25 - 30 records per second. That is a head scratcher to me. As soon as I bring the app back into focus the records per seconds drop back down to betweent 6-9, as soon as I move focus to another application it jumps back up to between 25 - 30. I am baffled. Would anyone know even where to start in looking at this issue. Any help would be *greatly* appreciated
Sincerely
John Sheppar
Missouri Botanical Gardens
Okay here comes the interesting and perplexing part. The control and framework work fine. When I fire off the import process with the application in focus the control is reporting between 6-9 records per second. As soon as I switch focus to another application the number of records per second being processed jumps up to between 25 - 30 records per second. That is a head scratcher to me. As soon as I bring the app back into focus the records per seconds drop back down to betweent 6-9, as soon as I move focus to another application it jumps back up to between 25 - 30. I am baffled. Would anyone know even where to start in looking at this issue. Any help would be *greatly* appreciated
Sincerely
John Sheppar
Missouri Botanical Gardens