这是我的代码
<cfquery name="employeeData" datasource="xyz" cachedwithin="#CreateTimeSpan(0,0,60,0)#">
SELECT employee, salary
FROM employee
</cfquery>
<cfquery name="wellPaidEmployee" dbtype="query">
SELECT employee, salary
FROM employeeData WHERE salary > <cfqueryparam cfsqltype="cf_sql_integer" value="10000">
</cfquery>
条件:
第一个查询EmployeeData由于某些问题而超时并抛出错误“查询超时”
问题:
- 在下一次调用中,查询 EmployeeData 会运行还是会在缓存中出现查询超时错误,因为我们使用 cachewithin 对其进行了缓存?
- wellPaidEmployee 在第一次运行和下一次运行时会发生什么?