portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

Heavy Handed, but effective. Passing entire scopes into CFTHREAD.

| View in Portal
April 18, 2019 04:34:05 PM GMT
4 Comments
<p>When you're dealing with  and lots of variables that exist in (potentially) many different scopes, one approach could be to pass the whole scope into the thread.</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/04/heavy-handed-effective-passing-entire-scopes-cfthread/">Heavy Handed, but effective. Passing entire scopes into CFTHREAD.</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: Blog, ColdFusion, Showcase, Troubleshooting, showcase, troubleshooting

Comments:

With your cfthread approach, how long does it take to send and record that many emails?
Comment by gobiem95484943
2001 | April 19, 2019 03:17:27 PM GMT
It's not that quick, but the user doesn't see the delay.  Threading the processing of the emails and database insert still takes a couple of minutes for 10,000 records, but since the user doesn't see it, the perception is that it's lightning fast.
Comment by David Byers
2005 | April 19, 2019 04:52:28 PM GMT
So would a specific form variable still be referenced as form.myVar inside the thread?
Comment by azlonghorn
3580 | December 19, 2019 10:24:59 PM GMT
Correct!  The scope will exist in the thread exactly the same as it did outside the thread.
Comment by David Byers
3581 | December 23, 2019 02:57:20 PM GMT