优化es商品索引的mapping的促销存储结构(解决促销过多时,mapping explosion问题)

This commit is contained in:
paulGao
2022-01-11 11:25:56 +08:00
parent a4d458bace
commit 77a714e64c
7 changed files with 20 additions and 30 deletions

View File

@@ -390,7 +390,7 @@ public class GoodsMessageListener implements RocketMQListener<MessageExt> {
if (goodsIndex.getPromotionMap() == null || goodsIndex.getPromotionMap().isEmpty()) {
Map<String, Object> goodsCurrentPromotionMap = promotionService.getGoodsPromotionMap(goodsIndex);
goodsIndex.setPromotionMap(goodsCurrentPromotionMap);
goodsIndex.setPromotionMapJson(JSONUtil.toJsonStr(goodsCurrentPromotionMap));
}
}