问题现象: 接口响应时间超长,耗时几十秒才返回错误提示,后台日志中出现Lock wait timeout exceeded;
try restarting transaction的错误 问题场景: 1、在同一事务内先后对同一条数据进行插入和更新操作;
2、多台服务器操作同一数据库; 3、瞬时出现高并发现象; 问题原因:
1、在高并发的情况下,Spring事物造成数据库死锁,后续操作超时抛出异常。
【mysql】 【innodb】 【线程】 【数据库】 …
Community journal
Follow the feed
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Showing entries 811 to 820 of 15691
« Previous |
Next »
Aug
07
2018
Aug
07
2018
RDS for MySQL 大表操作
【云栖社区】 【数据存储与数据库】 【faq】 【mysql】 【RDS】 【日志】 【ghost】 【数据同步】 【replication】 …
Aug
06
2018
Aug
06
2018
Aug
05
2018
Aug
05
2018
Aug
05
2018
Aug
05
2018
Aug
05
2018