![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JPA
yinyousong1
这个作者很懒,什么都没留下…
展开
-
JPA Performance, Don't Ignore the Database
[code="java"] 1.数据类型 应该使用小的数据类型,特别是建立索引的字段,小的数据类型和索引能加快数据查询. 2.规范化 数据库设计的三大范式,规范化减少了数据冗余,故而查询时要进行多边链接,但对表更新比较快;非规范化则恰恰相反,应正确处理此关系 规范化查询比较慢,但我们可以缓存它. 3.JPA继承结构映射 1.单表对象每个类 查询较快...原创 2009-09-22 15:58:26 · 96 阅读 · 0 评论 -
JPA cache
[code="java"] PersistenceContext Level2 Cache Extend PersistenceContext . 二级缓存优缺点The advantages of L2 caching are: * avoids database access for already loaded entities * faster for re...原创 2009-09-22 16:13:22 · 94 阅读 · 0 评论