WEB开发网
开发学院数据库MySQL Mysql教程:性能跟踪语句 阅读

Mysql教程:性能跟踪语句

 2008-08-30 11:07:25 来源:WEB开发网   
核心提示: | storing result in query cache| 0.000006 | 0| 0|0 | 0 || freeing items| 0.000012 | 0| 0|0 | 0 || closing tables | 0.000009 | 0| 0|0 | 0 || loggi

| storing result in query cache | 0.000006 | 0    | 0     |      0 |       0 |

| freeing items         | 0.000012 | 0    | 0     |      0 |       0 |

| closing tables         | 0.000009 | 0    | 0     |      0 |       0 |

| logging slow query       | 0.000183 | 0    | 0     |      0 |       0 |

+--------------------------------+----------+----------+------------+--------------+---------------+

17 rows in set (0.00 sec)

mysql> insert into t(username) select username from t;

Query OK, 2097152 rows affected (34.17 sec)

Records: 2097152 Duplicates: 0 Warnings: 0

mysql> show profiles;

+----------+-------------+------------------------------------------------+

| Query_ID | Duration  | Query                     |

+----------+-------------+------------------------------------------------+

|    1 | 0.02717000 | show tables                  |

|    2 | 0.74770100 | select count(*) from t             |

|    3 | 0.00004200 | show prifile for query 2            |

|    4 | 34.30410100 | insert into t(username) select username from t |

+----------+-------------+------------------------------------------------+

上一页  1 2 3 4 5 6 7 8 9  下一页

Tags:Mysql 教程 性能

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接