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

kindy wu (JIRA) noreply at atlassian.com
Tue Jun 12 21:56:04 EDT 2007


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