專案

一般

配置概況

Feature #473

是由 陳國瑋超過 3 年 前更新

角色 : 廠商助理 
 功能:報價單管理 

 優化項目: 

 1 將寫入db時的request參數由post form data to post json 
 只需要在server.xml修改如下即可,不需將form改成json 
 <pre> 
 <Connector port="xxxxx" protocol="HTTP/1.1"  
                connectionTimeout="20000"  
                redirectPort="xxxxxx" useBodyEncodingForURI="true" maxParameterCount="100000​"/>  

  <Connector port="xxxx" protocol="AJP/1.3" redirectPort="8443" enableLookups="false" useBodyEncodingForURI="true" maxParameterCount="100000"/>​ 
 </pre> 

 2 調整Excel資料寫入DB時的SQL(Batch insertion) 
 調整前quotation_step2.jsp執行時間共花費 *215*<notextile></notextile>。 
 調整後quotation_step2.jsp執行時間共花費 *6*<notextile></notextile>。 

 3 調整由DB提取報價單資料時的SQL 
 調整前quotation_step2.jsp/new_step2.jsp執行時間共花費 *136s*<notextile></notextile>。 
 調整後quotation_step2.jsp/new_step2.jsp執行時間共花費 *2s*<notextile></notextile>。

返回