Home  >  Article  >  Database  >  mysql存储过程的优化,

mysql存储过程的优化,

WBOY
WBOYOriginal
2016-06-06 09:42:141031browse

mysql

调用存储过程,[code=sqlINSERT INTO tb_test(id,rule,time) VALUES(_id,_rule,_time);
SELECT @@identity;][/code]
进行简单的插入语句,在慢查询日志中
95% of Time : 5254.761149 s total, 2.48805 s avg, 1.002664 s to 5.144049 s max
表现有数据7w行;该怎么优化?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn