【发布时间】:2016-02-16 09:17:40
【问题描述】:
现在我们使用的是 MySQL 5.1.72 版本的数据库。它不是集群数据库,而是常规数据库。 64 位(“mysql Ver 14.14 Distrib 5.1.72, for sun-solaris2.11 (x86_64) using readline 6.3”)我们使用的是专用服务器,而不是冗余的云解决方案。我的经验是,我们挤进我们平台的客户越多,我们遇到的问题就越多
2016-02-15 13:26:36,737 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL Error: 1205, SQLState: 41000>
2016-02-15 13:26:36,737 ERROR [org.hibernate.util.JDBCExceptionReporter] - <Lock wait timeout exceeded; try restarting transaction>
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not insert: [com.marin.core.server.model.TableName]
切换到另一个数据库对我们有帮助吗?或者可能只是 MySQL 的集群版本?有些表中有数百万行。最大的表大小约为 5 GB。它有很多索引。
【问题讨论】:
标签: mysql database hibernate database-design