Recordrecord=DfindFirst('SELECTcontrollerNameFROMmodule_statisticsWHEREcontrollerName=?ANDmethodName=?',className,methodNam;
try{
}catch(Exceptionex){
}
}
/**
/**
Dupdate('UPDATEmodule_statisticsSETcount=count+1WHEREcontrollerName=?ANDmethodName=?LIMIT1',className,methodNam;
*统计通达信5分钟历史数据下载接口,接口调用次数
inv.invoke();
*/
*统计通达信5分钟历史数据下载接口,接口调用次数(另外的线程中执行)
*/
}
}
*@parammethodNamecontroller中的方法名
}
APICallCount(controllerPatsubstring(1,controllerPatlength()),inv.getMethodName());
if(record==nul{
但是这样是否会带来负载过高?有没有什么好的解决办法?按照key-value周期性的存储吗?
Dupdate('INSERTINTOmodule_statistics(controllerName,methodName,count,statvalues(?,?,0,',className,methodNam;
LogKit.error('统计出错:'+className+'/'+methodNam;
}).start();
文章为作者独立观点,不代表观点