走index only是可以减少cost。但为专门的select字段定制索引会导致索引变得很多。从原先的计划看,虽然有 ...mdkii 发表于 2013-6-21 15:03
第一遍没有输出到文件,使用的时间是Type Number Repetitions...
显示全部走index only是可以减少cost。
但为专门的select字段定制索引会导致索引变得很多。
从原先的计划看,虽然有 ...
mdkii 发表于 2013-6-21 15:03
第一遍没有输出到文件,使用的时间是
Type Number Repetitions Total Time (s) Min Time (s) Max Time (s) Arithmetic Mean Geometric Mean Row(s) Fetched Row(s) Output
--------- ----------- ----------- -------------- -------------- -------------- --------------- -------------- -------------- -------------
Statement 1 1 214.110131 214.110131 214.110131 214.110131 214.110131 0 0
* Total Entries: 1
* Total Time: 214.110131 seconds
* Minimum Time: 214.110131 seconds
* Maximum Time: 214.110131 seconds
* Arithmetic Mean Time: 214.110131 seconds
* Geometric Mean Time: 214.110131 seconds
---------------------------------------------
* Timestamp: Fri Jun 21 2013 17:26:13 BEIST
第二遍输出到文件中,文件见附件.
谢谢各位大神:)
收起