PolarDB这个语句不走列存,为什么?

PolarDB这个语句不走列存,为什么? 加上orderby那列 语义会发生变化查询结果不一样了SELECT
DISTINCT p.products_id,
p.products_name AS products_name_m,
p.products_url_name,
p.cas_no,
p.seller_count,
p.price_trend_count,
p.produce_count,
p.features_flag,
p.information_flag
FROM
t_e_products p
INNER JOIN t_e_all_produce_seller_activity sdt ON sdt.products_id = p.products_id
AND IFNULL(sdt.delflag, '') <> '1'
INNER JOIN t_e_casno_relation rel ON rel.cas_no_target = p.cas_no
AND rel.cas_no = '56-81-5'
AND IFNULL(rel.delflag, '') != '1'
INNER JOIN t_zy_price_index pi ON pi.product_id = p.products_id
AND IFNULL(pi.delflag, '') != '1'
WHERE
p.information_flag = '1'
AND IFNULL(p.delflag, '') != '1'
ORDER BY
pi.update_date DESC,
1 = 1
LIMIT
5

展开
收起
三分钟热度的鱼 2023-12-28 19:47:27 58 分享 版权
1 条回答
写回答
取消 提交回答
  • 8.0.2.2.20 版本已经在灰度了, 应该这几天就发布, 如果需要紧急用的话,可以给你们后台直接升级一下。此回答整理自钉群“PolarDB专家面对面 - HTAP(列存索引)”

    2023-12-28 19:55:47
    赞同 展开评论

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 采用 Shared-nothing 与存储计算分离架构,支持水平扩展、分布式事务、混合负载等能力,100%兼容MySQL。 2021年开源,开源历程及更多信息访问:OpenPolarDB.com/about

还有其他疑问?
咨询AI助理