
数据库的存储优化
不是我的货
开始写博客,开始输出我知道的东西
展开
-
Mysql数据库的索引原理
http://blog.youkuaiyun.com/bluejoe2000/article/details/42370951转载 2015-04-15 15:11:08 · 337 阅读 · 0 评论 -
数据库表的设计
1、所有InnoDB数据表都创建一个和业务无关的自增数字型作为主键,对保证性能很有帮助。 2、杜绝使用text/blob,确实需要使用的,尽可能拆分出去成一个独立的表 3、时间戳建议使用TIMESTAMP类型存储 4、IPV4地址建议使用int unsigned类型存储 5、性别等非是既非的逻辑,建议使用tinyint存储,而不是char(1)。 6、存储较长文本内容时,建议采用json转载 2015-04-16 15:41:18 · 308 阅读 · 0 评论 -
c3p0配置
bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> 5 30 10 60 5 <!-- 1.原创 2015-05-05 16:55:18 · 314 阅读 · 0 评论 -
mysql连接出错
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets fr原创 2016-06-04 12:26:32 · 1199 阅读 · 0 评论