Performance 数据库中的cfprint和cfdocument资源运行缓慢
我在使用cfprint打印cfdocument变量时遇到问题。打印工作正常,但运行前需要花费大量时间。 请问原因是什么 PS:我正在从我的数据库中获取一些数据 代码就是这种格式Performance 数据库中的cfprint和cfdocument资源运行缓慢,performance,coldfusion,cfdocument,cfprint,Performance,Coldfusion,Cfdocument,Cfprint,我在使用cfprint打印cfdocument变量时遇到问题。打印工作正常,但运行前需要花费大量时间。 请问原因是什么 PS:我正在从我的数据库中获取一些数据 代码就是这种格式 <cfquery datasource="xxx" name="fg"> SELECT * FROM table WHERE 1 = 1 </cfquery> <cfdocument name="print_pdf" format="pdf" localUrl="t
<cfquery datasource="xxx" name="fg">
SELECT *
FROM table
WHERE 1 = 1
</cfquery>
<cfdocument name="print_pdf" format="pdf" localUrl="true">
I did some little outputting of the query here e.g
<cfoutput query="fg">
#column1#<br>
#column2# * #column3#<br>
</cfdocument>
<cfprint source="print_pdf" printer="PRINTER NAME">
但是当我加载这个页面时,它需要一些时间。在完全加载之前很久。是否有任何错误或优化工作的方法?是否打开了调试功能?@DanBracuk是的,我的调试功能已打开。执行查询需要多长时间,返回多少条记录?完成后,我将输出时间。我想确定哪一个是最慢的如果你在PDF中添加了很多图像,那么这可能会使文档创建速度变慢。