Hi,
Do I need to lock every <cfquery> if the query's datasourse is #application.ds# and there is a session variable within the query such as where job_id = #session.job_id#?
The code would be:
<cflock scope="application" type="readonly" timeout="10">
<cflock scope="session" type="readonly"(or EXCLUSIVE depends on the query) timeout="10">
<cfquery name="queryname" datasource="#application.ds#">
Select or Update or Insert or Delete ...
...
</cfquery>
</cflock>
</cflock>
Thanks,
J
Do I need to lock every <cfquery> if the query's datasourse is #application.ds# and there is a session variable within the query such as where job_id = #session.job_id#?
The code would be:
<cflock scope="application" type="readonly" timeout="10">
<cflock scope="session" type="readonly"(or EXCLUSIVE depends on the query) timeout="10">
<cfquery name="queryname" datasource="#application.ds#">
Select or Update or Insert or Delete ...
...
</cfquery>
</cflock>
</cflock>
Thanks,
J