详情页标题前

图中有关PolarDB的 pc-wz90aa8d1s3736keu相关问题是什么?-云小二-阿里云

详情页1

图中有关PolarDB的 pc-wz90aa8d1s3736keu相关问题是什么?-云小二-阿里云
图中有关PolarDB的 pc-wz90aa8d1s3736keu相关问题是什么?-云小二-阿里云
SELECT id, customer_id AS customerId, sku_id AS skuIdFROM custom_goods_vendor_maintainingWHERE store_id = 900 AND valid = 1 AND id > 0 AND u_t < 1703667933563 AND custom_goods_vendor_maintaining.store_id = 900ORDER BY idLIMIT 200
图中有关PolarDB的 pc-wz90aa8d1s3736keu相关问题是什么?

以下为热心网友提供的参考意见

加 hint: /+ SET_VAR(optimizer_switch=”prefer_ordering_index=off,”) / 就能解决,可以加 outline 来固定执行计划,我给您个语句。set character_set_client = ‘utf8’;
call dbms_outln.add_optimizer_outline(“vendor_manager”, “/+ SET_VAR(optimizer_switch=’prefer_ordering_index=off,’) /”, “explain SELECT id, customer_id AS customerId, sku_id AS skuId FROM custom_goods_vendor_maintaining WHERE store_id = 900 AND valid = 1 AND id > 0 AND u_t < 1703667933563 AND custom_goods_vendor_maintaining.store_id = 900 ORDER BY id LIMIT 200");

set character_set_client = ‘latin1’;
call dbms_outln.add_optimizer_outline(“vendor_manager”, “/+ SET_VAR(optimizer_switch=’prefer_ordering_index=off,’) /”, “explain SELECT id, customer_id AS customerId, sku_id AS skuId FROM custom_goods_vendor_maintaining WHERE store_id = 900 AND valid = 1 AND id > 0 AND u_t < 1703667933563 AND custom_goods_vendor_maintaining.store_id = 900 ORDER BY id LIMIT 200"); 此回答整理自钉群“PolarDB 专家面对面 – 慢SQL索引选择优化器新特性”。

转转请注明出处:https://www.yunxiaoer.com/181270.html

(0)
上一篇 2024年1月2日 下午11:54
下一篇 2024年1月3日 上午12:54
详情页2

相关推荐

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
本站为广大会员提供阿里云、腾讯云、华为云、百度云等一线大厂的购买,续费优惠,保证底价,买贵退差。