Database
heroandrew
这个作者很懒,什么都没留下…
展开
-
MySQL设置优化[转载]
MySQL的默认配置文件以节省资源为初衷,在资源有限、查询简单、数据集小的情况下运行良好,在查询复杂、数据集大时,配置文件需量身定制。引言Before you start changing configuration settings, you should keep in mind the fact that “more is not always better”. You might have 16-20 GB of RAM, but that doesn’t mean that you should转载 2010-12-25 16:15:00 · 431 阅读 · 0 评论 -
忽略org.hibernate.ObjectNotFoundException: No row with the given identifier exists
在many-to-one中设置not-found="ignore"原创 2010-11-14 14:11:00 · 402 阅读 · 0 评论 -
从Hibernate创建InnoDB表
(1)改变dialect为org.hibernate.dialect.MySQLInnoDBDialect或org.hibernate.dialect.MySQL5InnoDBDialect for MySQL5(2)在MySQL设置文件my.cnf中新增default_table_type=INNODB原创 2010-11-14 20:39:00 · 1146 阅读 · 1 评论