Authored by hugufei

日志优化

@@ -80,21 +80,19 @@ public class QueryRecallResultCacheBean extends AbstractCacheBean<RecallParams,R @@ -80,21 +80,19 @@ public class QueryRecallResultCacheBean extends AbstractCacheBean<RecallParams,R
80 UserPersonalFactorRsp userPersonalFactorRsp = queryUserPersionalFactorBean.queryPersionalFactor(param); 80 UserPersonalFactorRsp userPersonalFactorRsp = queryUserPersionalFactorBean.queryPersionalFactor(param);
81 RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin); 81 RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin);
82 //2、构造请求 82 //2、构造请求
83 - begin = System.currentTimeMillis();  
84 List<RecallRequest> batchRequests = this.buildBatchRequests(param, userPersonalFactorRsp); 83 List<RecallRequest> batchRequests = this.buildBatchRequests(param, userPersonalFactorRsp);
85 - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[2]-buildBatchRequests,cost is [{}]", System.currentTimeMillis()-begin);  
86 //3、批量召回 84 //3、批量召回
87 begin = System.currentTimeMillis(); 85 begin = System.currentTimeMillis();
88 List<CacheRecallRequestRecallResponse> requestResponses = batchRecallCacheBean.batchRecallAndCache(batchRequests); 86 List<CacheRecallRequestRecallResponse> requestResponses = batchRecallCacheBean.batchRecallAndCache(batchRequests);
89 - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[3]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin); 87 + RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
90 //4、获取skn列表[去重] 88 //4、获取skn列表[去重]
91 begin = System.currentTimeMillis(); 89 begin = System.currentTimeMillis();
92 RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses); 90 RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses);
93 - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[4]-buildRecallMergerResult,cost is [{}]", System.currentTimeMillis()-begin); 91 + RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[3]-buildRecallMergerResult,cost is [{}]", System.currentTimeMillis()-begin);
94 //5、构造真实结果[排序,截取skn] 92 //5、构造真实结果[排序,截取skn]
95 begin = System.currentTimeMillis(); 93 begin = System.currentTimeMillis();
96 RecallResult recallResult = recallResultBuilder.builderRecallResult(recallMergerResult, param, userPersonalFactorRsp); 94 RecallResult recallResult = recallResultBuilder.builderRecallResult(recallMergerResult, param, userPersonalFactorRsp);
97 - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[5]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin); 95 + RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[4]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin);
98 return recallResult; 96 return recallResult;
99 } 97 }
100 98