[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2672) Need Support Readonly Session

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed Jun 13 05:35:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27230 ] 

Max Rydahl Andersen commented on HHH-2672:
------------------------------------------

no, a readonly session would still need to deal with proxies and a session cache to guarantee uniqueness.

if you look for "ibatis" like behavior StatelessSession is for you.

But yes, readonly session request is a duplicate.

> Need Support Readonly Session
> -----------------------------
>
>                 Key: HHH-2672
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2672
>             Project: Hibernate3
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: 3.2.4.sp1
>            Reporter: kindy wu
>
> I think we need a readonly session to impove the Select performance!
> code is like this:
> session.SetReadonly(true);//or ReadonlySession rSession = new ReadonlySession(session);
> Code cs = session.CreateQuery("From Code c");//table codes is very huge
> if we set the session to Readonly then the Save,Update,Delete,SaveOrUpdate method is disable.
> and the entities that select from session is not need to write into session cache and don't need to 
> generate proxy for lazy fetch.
> In a Word Readonly Session work like ibatis and Support good Performance for huge Data Collection.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list