#0108 · 方法
SQL 先看执行计划
这条 SQL 上线前,先给出 EXPLAIN 的结果,说明它走了哪个索引、扫描多少行。如果是全表扫描,给出加索引或改写的方案,并说明对写入的影响。
Before this SQL ships, show its EXPLAIN output: which index it uses and how many rows it scans. If it's a full table scan, propose an index or a rewrite and explain the cost to writes.
小杜
已贴 1,040 张上墙共收到 0 个章