I have a scheduled task that creates 20 to 50 or so threads. I have ColdFusion set to run 20 concurrently, but I am getting push back from the DB people saying that I am hitting their DB too hard.
I am wondering if there is a way to have the page limit the thread count to 5 concurrent running threads. Or do something so that I don't have to alter the global setting
Fragment of code:
<cfoutput query="qrySetup">
<p>Starting thread for #Info#</p>
<cfset sleep(30)><!--- vain attempt at throdding --->
<cfthread name="t#currentrow#"
stConf = qrySetup.Conf
>
...
<CFSTOREDPROC PROCEDURE="usp_Big_and_slow">
<CFPROCPARAM VALUE="#stConf#" CFSQLTYPE="cf_sql_varchar">
<cfprocresult name="local.qryResult" resultSet = "1">
</CFSTOREDPROC>
...
</cfthread>
</cfoutput>