In an Internal application I've written I have an audit.cfc that is responsible for writing actions taken into an audit table. Very frequently (many times a day) multiple pages that call this CFC timeout with the following error: "The request has exceeded the allowable time limit Tag: CFQUERY". I've bumped up the requesttimeout to up to two minutes on some of these pages with no change. While it's various pages that call this CFC, they all fail running this query:
<cfquery name="qryInsertAuditStatement" datasource="#request.dsn#">
insert into application_auditing (
audit_uid
, audit_module
, audit_utc_time
, audit_action
, audit_param1
, audit_param2
, audit_param3
, audit_param4
, audit_param5
) values (
<cfqueryparam cfsqltype="cf_sql_integer" value="#session.app_uid#">
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.module#">
, #CreateODBCDateTime(request.utc)#
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.action#">
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.param1#">
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.param2#">
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.param3#">
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.param4#">
, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.param5#">
)
</cfquery>
No other query has every timed out in production except for this one. Any thoughts?
by: Jester_48Posted on 2007-06-29 at 06:16:09ID: 19389209
have you tried adding the time out request to the actual query?
ent" datasource="#request.dsn#" timeout="500">
<cfquery name="qryInsertAuditStatem
se if that change makes a difference