...
|
...
|
@@ -86,7 +86,7 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe |
|
|
}else{
|
|
|
userPersonalFactor = queryUserPersionalFactorBean.queryPersionalFactorNew(param);
|
|
|
}
|
|
|
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
//2、构造请求
|
|
|
List<RecallRequest> batchRequests;
|
|
|
if(!USER_SORT_BRAND_RECALL){
|
...
|
...
|
@@ -97,15 +97,14 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe |
|
|
//3、批量召回
|
|
|
begin = System.currentTimeMillis();
|
|
|
List<RecallRequestResponse> requestResponses = recallRequestResponseCacheBean.batchRecallAndCache(batchRequests);
|
|
|
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
//4、获取skn列表[去重]
|
|
|
begin = System.currentTimeMillis();
|
|
|
RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses);
|
|
|
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[3]-buildRecallMergerResult,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
//5、构造真实结果[排序,截取skn]
|
|
|
begin = System.currentTimeMillis();
|
|
|
UserRecallResponse userRecallResponse = userRecallResponseBuilder.builderRecallResult(recallMergerResult, param, userPersonalFactor);
|
|
|
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[4]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[3]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
return userRecallResponse;
|
|
|
}
|
|
|
|
...
|
...
|
|