...
|
...
|
@@ -161,7 +161,7 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us |
|
|
long begin = System.currentTimeMillis();
|
|
|
List<RecallRequest> commonRequests = commonRequestBuilder.buildCommonRecallRequests(userRecallRequest.getParamQueryFilter(), userRecallRequest.getFirstProductSkns());
|
|
|
List<RecallRequestResponse> commonRequestResponses = batchRecallCacheBean.batchRecallAndCache(commonRequests);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2]-doRecallCommon,requestCount is [{}], cost is [{}]", commonRequests.size(), System.currentTimeMillis() - begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2.1]-doRecallCommon,requestCount is [{}], cost is [{}]", commonRequests.size(), System.currentTimeMillis() - begin);
|
|
|
return commonRequestResponses;
|
|
|
}, recallExecutorService);
|
|
|
}
|
...
|
...
|
@@ -179,7 +179,7 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us |
|
|
int recommendSknCount = userPersonalFactor.getRecommendSknList() == null ? 0 : userPersonalFactor.getRecommendSknList().size();
|
|
|
int realTimeSimilarSknCount = userPersonalFactor.getRealTimeSimilarSknList() == null ? 0 : userPersonalFactor.getRealTimeSimilarSknList().size();
|
|
|
List<RecallRequestResponse> recommendSknRequestResponses = sknRecallCacheBean.batchRecallBySknList(userRecallRequest, userPersonalFactor, 8);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2]-doRecallRecommendSkn,recommendSknCount is [{}],realTimeSimilarSknCount is[{}] ,cost is [{}]", recommendSknCount, realTimeSimilarSknCount, System.currentTimeMillis() - begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2.2]-doRecallRecommendSkn,recommendSknCount is [{}],realTimeSimilarSknCount is[{}] ,cost is [{}]", recommendSknCount, realTimeSimilarSknCount, System.currentTimeMillis() - begin);
|
|
|
return recommendSknRequestResponses;
|
|
|
}, recallExecutorService);
|
|
|
}
|
...
|
...
|
@@ -196,7 +196,7 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us |
|
|
long begin = System.currentTimeMillis();
|
|
|
List<RecallRequest> realTimeSortBrandRequests = sortBrandRecallRequestBuilder.buildSortBrandRecallRequests(userRecallRequest.getParamQueryFilter(), userPersonalFactor.getRealTimeSortBrandList(), SortBrandType.REC_SORT_BRAND);
|
|
|
List<RecallRequestResponse> realTimeSortBrandRequestResponses = batchRecallCacheBean.batchRecallAndCache(realTimeSortBrandRequests);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2]-doRecallRealTimeSortBrand,requestCount is [{}], cost is [{}]", realTimeSortBrandRequests.size(), System.currentTimeMillis() - begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2.3]-doRecallRealTimeSortBrand,requestCount is [{}], cost is [{}]", realTimeSortBrandRequests.size(), System.currentTimeMillis() - begin);
|
|
|
return realTimeSortBrandRequestResponses;
|
|
|
}, recallExecutorService);
|
|
|
}
|
...
|
...
|
@@ -211,9 +211,9 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us |
|
|
private CompletableFuture<List<RecallRequestResponse>> doRecallVectorSortBrand(UserRecallRequest userRecallRequest, UserPersonalFactor userPersonalFactor) {
|
|
|
return CompletableFuture.supplyAsync(() -> {
|
|
|
long begin = System.currentTimeMillis();
|
|
|
List<RecallRequest> forecastSortBrandRequests = sortBrandRecallRequestBuilder.buildSortBrandRecallRequests(userRecallRequest.getParamQueryFilter(), userPersonalFactor.getVectorSortBrandList(), SortBrandType.VEC_SORT_BRAND);
|
|
|
List<RecallRequestResponse> vecSortBrandRequestsResponses = batchRecallCacheBean.batchRecallAndCache(forecastSortBrandRequests);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2]-doRecallVectorSortBrand,requestCount is [{}], cost is [{}]", forecastSortBrandRequests.size(), System.currentTimeMillis() - begin);
|
|
|
List<RecallRequest> vecortSortBrandRequests = sortBrandRecallRequestBuilder.buildSortBrandRecallRequests(userRecallRequest.getParamQueryFilter(), userPersonalFactor.getVectorSortBrandList(), SortBrandType.VEC_SORT_BRAND);
|
|
|
List<RecallRequestResponse> vecSortBrandRequestsResponses = batchRecallCacheBean.batchRecallAndCache(vecortSortBrandRequests);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2.4]-doRecallVectorSortBrand,requestCount is [{}], cost is [{}]", vecortSortBrandRequests.size(), System.currentTimeMillis() - begin);
|
|
|
return vecSortBrandRequestsResponses;
|
|
|
}, recallExecutorService);
|
|
|
}
|
...
|
...
|
@@ -230,7 +230,7 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us |
|
|
long begin = System.currentTimeMillis();
|
|
|
List<RecallRequest> forecastSortBrandRequests = sortBrandRecallRequestBuilder.buildSortBrandRecallRequests(userRecallRequest.getParamQueryFilter(), userPersonalFactor.getForecastSortBrandList(), SortBrandType.PRED_SORT_BRAND);
|
|
|
List<RecallRequestResponse> forecastSortBrandRequestsResponses = batchRecallCacheBean.batchRecallAndCache(forecastSortBrandRequests);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2]-doRecallForecastSortBrand,requestCount is [{}], cost is [{}]", forecastSortBrandRequests.size(), System.currentTimeMillis() - begin);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallCacheBean[2.5]-doRecallForecastSortBrand,requestCount is [{}], cost is [{}]", forecastSortBrandRequests.size(), System.currentTimeMillis() - begin);
|
|
|
return forecastSortBrandRequestsResponses;
|
|
|
}, recallExecutorService);
|
|
|
}
|
...
|
...
|
|