优化前:
pt-query-degist分析结果:
# Query 23: 0.00 QPS, 0.00x concurrency, ID 0x78761E301CC7EE47 at
byte 394687 # This item is included in the report because it
matches --limit.
【mysql】 【SQL】 【索引】 【index】 【Create】 【varchar】 点击查看原文>
1.在SQL解析时,如果开启这个参数,发现谓词为空则抛异常:
1 2 3 4 5 6
if ((thd->variables.option_bits & OPTION_SAFE_UPDATES) && !select_lex->where)
{
my_message(ER_...
【mysql】 【索引】 【variables】 【update】 点击查看原文>