Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Design Pattern & UML
打印话题 寄给朋友 订阅主题 |
作者 | Re:关于 Fast-Lane Reader 模式 [Re:jameszhang] |
tongang
发贴: 8 积分: 0 |
于 2004-10-26 23:59
ENTITY BEAN,查询大量的数据就会变慢的。 Fast-Lane Reader 模式根据DAO直接读取数据库。然后通过缓存。。用SESSION BEAN的方式发布。速度就快很多了。。 他是指大数据查询的时候使用的。技术。。 |
作者 | Re:关于 Fast-Lane Reader 模式 [Re:jameszhang] |
tongang
发贴: 8 积分: 0 |
于 2004-10-26 23:59
ENTITY BEAN,查询大量的数据就会变慢的。 Fast-Lane Reader 模式根据DAO直接读取数据库。然后通过缓存。。用SESSION BEAN的方式发布。速度就快很多了。。 他是指大数据查询的时候使用的。 |
作者 | Re:关于 Fast-Lane Reader 模式 [Re:jameszhang] |
emarket
亢龙有诲 CJSDN高级会员 发贴: 460 积分: 82 |
于 2004-10-27 13:09
Core J2EE Pattern 2nd p56里面有所提及,CMP 被 force CMT, 而 Transaction 对 read only data 简直就是浪费,Using an entity bean as a read-only object simply wastes expensive resources and result in unnecessary update transactions to persistent store. this is due to the invocation of ejbStore() methods by the container during teh entity bean's life cycle. Since the container has no way of knowing if the data was changed during a method invocation, it must assume that it has and invoke the ejbStore. Thus, the container make no distinction between read-only and read-write entity beans. 虽然某些container 提供 read-only entity beans, 当时J2EE spec 没有定义,所以这些属于私有实现。 jameszhang wrote: 个人Blog http://agilespeaking.blogspot.com/ |
作者 | Re:关于 Fast-Lane Reader 模式 [Re:tongang] |
emarket
亢龙有诲 CJSDN高级会员 发贴: 460 积分: 82 |
于 2004-10-27 13:11
好像不是这样的吧,entity bean也可以缓存的哦。真正的原因不是大量,而是transaction tongang wrote: 个人Blog http://agilespeaking.blogspot.com/ |
作者 | Re:关于 Fast-Lane Reader 模式 [Re:jameszhang] |
emarket
亢龙有诲 CJSDN高级会员 发贴: 460 积分: 82 |
于 2004-10-31 12:41
jameszhang wrote: 如果你的read only entity bean(不要用container私有的办法设置entity bean为 read only)参与了transaction , 好像不会只调用一次 ejbLoad吧。 另外 ejbStore 也会被调用的哦。 个人Blog http://agilespeaking.blogspot.com/ |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |