Showing
3 changed files
with
5 additions
and
7 deletions
@@ -124,7 +124,6 @@ public class SceneRecallProductListService { | @@ -124,7 +124,6 @@ public class SceneRecallProductListService { | ||
124 | }else{ | 124 | }else{ |
125 | recallSknInfos = this.queryProductSknByFilterSkn(userRecallRequest, userRecallResponse.getSknList(), page-recallTotalPage, pageSize); | 125 | recallSknInfos = this.queryProductSknByFilterSkn(userRecallRequest, userRecallResponse.getSknList(), page-recallTotalPage, pageSize); |
126 | } | 126 | } |
127 | - RECALL_NEW_LOGGER.info("SceneRecallProductListService[2].getRecallSknInfos,cost is [{}]", System.currentTimeMillis()-begin); | ||
128 | 127 | ||
129 | //3、获取召回结果的skn | 128 | //3、获取召回结果的skn |
130 | List<Integer> productSknList = this.getProductSknList(recallSknInfos); | 129 | List<Integer> productSknList = this.getProductSknList(recallSknInfos); |
@@ -132,7 +131,7 @@ public class SceneRecallProductListService { | @@ -132,7 +131,7 @@ public class SceneRecallProductListService { | ||
132 | //4、获取商品的返回信息 | 131 | //4、获取商品的返回信息 |
133 | begin = System.currentTimeMillis(); | 132 | begin = System.currentTimeMillis(); |
134 | List<Map<String, Object>> productInfoList = sknInfoResqusetResponseCacheBean.queryProductListBySkn(productSknList,productSknList.size()); | 133 | List<Map<String, Object>> productInfoList = sknInfoResqusetResponseCacheBean.queryProductListBySkn(productSknList,productSknList.size()); |
135 | - RECALL_NEW_LOGGER.info("SceneRecallProductListService[3].queryProductListBySkn,cost is [{}]", System.currentTimeMillis()-begin); | 134 | + RECALL_NEW_LOGGER.info("SceneRecallProductListService[2].queryProductListBySkn,cost is [{}]", System.currentTimeMillis()-begin); |
136 | 135 | ||
137 | //5、填充召回类型 | 136 | //5、填充召回类型 |
138 | Map<Integer,RecallSknInfo> sknRecallTypeMap = CollectionUtils.toMap(recallSknInfos, new Transfer<RecallSknInfo, Integer>() { | 137 | Map<Integer,RecallSknInfo> sknRecallTypeMap = CollectionUtils.toMap(recallSknInfos, new Transfer<RecallSknInfo, Integer>() { |
@@ -86,7 +86,7 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe | @@ -86,7 +86,7 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe | ||
86 | }else{ | 86 | }else{ |
87 | userPersonalFactor = queryUserPersionalFactorBean.queryPersionalFactorNew(param); | 87 | userPersonalFactor = queryUserPersionalFactorBean.queryPersionalFactorNew(param); |
88 | } | 88 | } |
89 | - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin); | 89 | + RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin); |
90 | //2、构造请求 | 90 | //2、构造请求 |
91 | List<RecallRequest> batchRequests; | 91 | List<RecallRequest> batchRequests; |
92 | if(!USER_SORT_BRAND_RECALL){ | 92 | if(!USER_SORT_BRAND_RECALL){ |
@@ -97,15 +97,14 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe | @@ -97,15 +97,14 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe | ||
97 | //3、批量召回 | 97 | //3、批量召回 |
98 | begin = System.currentTimeMillis(); | 98 | begin = System.currentTimeMillis(); |
99 | List<RecallRequestResponse> requestResponses = recallRequestResponseCacheBean.batchRecallAndCache(batchRequests); | 99 | List<RecallRequestResponse> requestResponses = recallRequestResponseCacheBean.batchRecallAndCache(batchRequests); |
100 | - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin); | 100 | + RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin); |
101 | //4、获取skn列表[去重] | 101 | //4、获取skn列表[去重] |
102 | begin = System.currentTimeMillis(); | 102 | begin = System.currentTimeMillis(); |
103 | RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses); | 103 | RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses); |
104 | - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[3]-buildRecallMergerResult,cost is [{}]", System.currentTimeMillis()-begin); | ||
105 | //5、构造真实结果[排序,截取skn] | 104 | //5、构造真实结果[排序,截取skn] |
106 | begin = System.currentTimeMillis(); | 105 | begin = System.currentTimeMillis(); |
107 | UserRecallResponse userRecallResponse = userRecallResponseBuilder.builderRecallResult(recallMergerResult, param, userPersonalFactor); | 106 | UserRecallResponse userRecallResponse = userRecallResponseBuilder.builderRecallResult(recallMergerResult, param, userPersonalFactor); |
108 | - RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[4]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin); | 107 | + RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[3]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin); |
109 | return userRecallResponse; | 108 | return userRecallResponse; |
110 | } | 109 | } |
111 | 110 |
service/src/main/java/com/yoho/search/recall/scene/beans/persional/QueryUserPersionalFactorBean.java
@@ -82,7 +82,7 @@ public class QueryUserPersionalFactorBean { | @@ -82,7 +82,7 @@ public class QueryUserPersionalFactorBean { | ||
82 | //4、构造UserPersonalFactorRspNew | 82 | //4、构造UserPersonalFactorRspNew |
83 | UserPersonalFactor userPersonalFactor = new UserPersonalFactor(sortBrandList, sortPriceAreasList,userFactorNew.getVector()); | 83 | UserPersonalFactor userPersonalFactor = new UserPersonalFactor(sortBrandList, sortPriceAreasList,userFactorNew.getVector()); |
84 | if(userRecallRequest.getUid()==13420925){ | 84 | if(userRecallRequest.getUid()==13420925){ |
85 | - RECALL_NEW_LOGGER.info("innerJoinFactor . uid is[{}], userPersonalFactor is [{}], ", userRecallRequest.getUid(), JSON.toJSONString(userPersonalFactor); | 85 | + RECALL_NEW_LOGGER.info("innerJoinFactor . uid is[{}], userPersonalFactor is [{}], ", userRecallRequest.getUid(), JSON.toJSONString(userPersonalFactor)); |
86 | } | 86 | } |
87 | return userPersonalFactor; | 87 | return userPersonalFactor; |
88 | } catch (Exception e) { | 88 | } catch (Exception e) { |
-
Please register or login to post a comment