开发者社区 > PolarDB开源 > PolarDB 分布式版 > 正文

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 30 0
1 条回答
写回答
取消 提交回答
  • 8.0.2.2.20 版本已经在灰度了, 应该这几天就发布, 如果需要紧急用的话,可以给你们后台直接升级一下。此回答整理自钉群“PolarDB专家面对面 - HTAP(列存索引)”

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

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 是阿里云自主设计研发的高性能云原生分布式数据库产品,为用户提供高吞吐、大存储、低延时、易扩展和超高可用的云时代数据库服务。

相关电子书

更多
云栖大会:开源 PolarDB 架构演进、关键技术与社区建设 立即下载
2023云栖大会:和客户一起玩转PolarDB新特性 立即下载
2023云栖大会:PolarDB for AI 立即下载