I think it is something to do with how the end of the
function processes. I am able to watch the records get wrote into
my database table. From the time the last record gets wrote to the
time the end of the function is processed is about 19 seconds for
500 records. That time goes up when more records are processed too.
Here is the code at the end of my loop that processes the data
prior to the end of the function. When the /CFLOOP is reached is
when the last record is wrote to the table.
<CFSILENT>
<!--- bunch of code to import a spreadsheet and put it
into a temporary database table so the data can be further
manipulated. This is then followed by a bunch of code to do
summations, groupings, create referential integrity, etc… and
then put the clean data into a good data table and the bad data
into a bad data table. --->
<CFTRANSACTION>
<cftry>
<CFLOOP QUERY="GetData">
<cftransaction action = "commit"/>
</CFLOOP>
<cfcatch type="database">
<cfthrow message="function = ADD records, MyFlag =
#MyFlag# #cfcatch.Message# #cfcatch.Detail#">
</cfcatch>
</cftry>
</CFTRANSACTION>
<!--- here is where I start my stop watch when the record
count in my table quits incrementing --->
</CFSILENT>
<CFSET MyReturnString = GoodCnt & ',' & BadCnt1
& ',' & BadCnt2 & ',' & BadCnt3>
<CFRETURN MyReturnString>
</CFFUNCTION>
I have been playing with adding a CFTRANSACTION into the code
to see if that helps or hurts. So far it has not made a difference.
Bottom line is after the data is processed the function is not
returning to Flex in a timely manner.
Have an Ordinary Day...
KomputerMan ~|:-)