由于分区表的每个分区数据负载不均衡,想查询较大数据量的分区键都归属在了哪些partition中,请问呢如何查询呢
1 个赞
explain select 1 from t where part_key = ?
看计划里table scan的partition
2 个赞
select distinct part_key from table partition(p1); --试试这种。
1 个赞
同问
1 个赞