Single treaded app in cf5:
Application.cfm:
= = = = = = =
<cflock scope="application" timeout="20">
<cfset application.var = "">
</cflock>
By locking the application scope, every tread has to wait for the previous tread to release the lock. As all users share the application scope and all requests execute application.cfm, the result is a single-treaded app. This may work fine in dev (only one or two users), but have a huge performance impact in production.
-----Oorspronkelijk bericht-----
Van: Bushy [mailto:[EMAIL PROTECTED]
Verzonden: vr 14/11/2003 15:03
Aan: CF-Talk
CC:
Onderwerp: RE: Changes in a Directory CFDIRECTORY
--Original Message Text---
From: Pascal Peters
Date: Fri, 14 Nov 2003 14:51:45 +0100
If the directory listing is the same for all users, you can store it in the application scope.
Directory listings would change. Not all users would be accessing the same data in the same directories. Can I still use an APPLICATION scope?
you have to be carefull not to single-thread your application using the application scope in the Application.cfm
I'm not sure what you mean by that. Could you give an example?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

