Authored by hugufei

添加耗时日志统计

... ... @@ -21,6 +21,8 @@ public class QueryUserPersionalFactorBean {
private static final Logger logger = LoggerFactory.getLogger(QueryUserPersionalFactorBean.class);
private static final Logger RECALL_NEW_LOGGER = LoggerFactory.getLogger("RECALL");
@Autowired
private PagePersionalFactorComponent pageComponent;
@Autowired
... ... @@ -41,7 +43,7 @@ public class QueryUserPersionalFactorBean {
//3、join获取最终的结果
List<Integer> brandIds = this.innerJoin(pageFactor.getBrandIds(),userFactor.getBrandIds(),brandIdMapkeyTransfer,10);
List<SortPriceArea> sortPriceAreas = this.innerJoin(pageFactor.getSortPriceAreas(),userFactor.getSortPriceAreas(),sortPriceMapkeyTransfer,5);
logger.info("UserPersonalFactorRsp . brandIds is [{}],sortPriceAreas is[{}]", JSON.toJSONString(brandIds),JSON.toJSONString(sortPriceAreas));
RECALL_NEW_LOGGER.info("UserPersonalFactorRsp . brandIds is [{}],sortPriceAreas is[{}]", JSON.toJSONString(brandIds),JSON.toJSONString(sortPriceAreas));
return new UserPersonalFactorRsp(brandIds, sortPriceAreas,userFactor.getVector());
}catch (Exception e){
logger.error(e.getMessage(),e);
... ...